Главная страница
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.046 c
2-1141992438
it_work
2006-03-10 15:07
2006.03.26
Как эмитировать нажатия кнопок


9-1124121668
ArtemESC
2005-08-15 20:01
2006.03.26
DelphiX


2-1142151949
@gent
2006-03-12 11:25
2006.03.26
проблема с компонентом Image


9-1126637331
Ricks
2005-09-13 22:48
2006.03.26
Столкновения


15-1141654342
Igorek
2006-03-06 17:12
2006.03.26
Линейка для экрана