Главная страница
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.053 c
2-1141996313
dabreezy
2006-03-10 16:11
2006.03.26
Память


2-1141741690
Maria
2006-03-07 17:28
2006.03.26
Работа с компонентами


15-1141036082
Loginov Dmitry
2006-02-27 13:28
2006.03.26
Про сайт...


2-1141644031
Farpik
2006-03-06 14:20
2006.03.26
Как отследить подключение к Интернету?


4-1136650484
Signate
2006-01-07 19:14
2006.03.26
Запуск приложения принудительно на одном процессоре