Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2006.03.26;
Скачать: CL | DM;

Вниз

Как удалить шрифт из системы по его названию?   Найти похожие ветки 

 
Dark Lord ©   (2005-12-30 21:07) [0]

Здравствуйте! Такая вот проблемка... Ведь обозначение шрифта в Винде и название самого файла шрифта как обычно разные... Как тогда зная просто одно название удалить файл?


 
n0name   (2005-12-31 08:06) [1]

int EnumFontFamiliesEx(
 HDC hdc,                          // handle to DC
 LPLOGFONT lpLogfont,              // font information
 FONTENUMPROC lpEnumFontFamExProc, // callback function
 LPARAM lParam,                    // additional data
 DWORD dwFlags                     // not used; must be 0
);

int CALLBACK EnumFontFamExProc(
 ENUMLOGFONTEX *lpelfe,    // logical-font data
 NEWTEXTMETRICEX *lpntme,  // physical-font data
 DWORD FontType,           // type of font
 LPARAM lParam             // application-defined data
);

typedef struct tagENUMLOGFONTEX {
 LOGFONT  elfLogFont;
 TCHAR  elfFullName[LF_FULLFACESIZE];
 TCHAR  elfStyle[LF_FACESIZE];
 TCHAR  elfScript[LF_FACESIZE];
} ENUMLOGFONTEX, *LPENUMLOGFONTEX;


 
TUser ©   (2006-01-02 11:31) [2]

The RemoveFontResource function removes the fonts in the specified file from the Windows font table.

BOOL RemoveFontResource(

   LPCTSTR lpFileName  // address of font-resource filename  
  );


Parameters

lpFileName

Points to a null-terminated string that names a font resource file.



Return Values

If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

An application that adds or removes fonts from the Windows public font table should notify other windows of the change by sending a WM_FONTCHANGE message to all top-level windows in the system. The application sends this message by calling the SendMessage function with the hwnd parameter set to HWND_BROADCAST.
If there are outstanding references to a font, the associated resource remains loaded until no device context is using it.

See Also

AddFontResource, SendMessage



Страницы: 1 вся ветка

Текущий архив: 2006.03.26;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.043 c
2-1142317624
chapchaps
2006-03-14 09:27
2006.03.26
Дельфи


15-1141200545
Huk
2006-03-01 11:09
2006.03.26
Пропадает окно Watch View в Delphi 7


2-1141644435
Junior1
2006-03-06 14:27
2006.03.26
Прочитать файл в массив


2-1141895554
SMAC
2006-03-09 12:12
2006.03.26
TButton.Color


2-1142155503
Ega23
2006-03-12 12:25
2006.03.26
Сохранить файл в Unicode