Главная страница
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
15-1141472956
ipashkov
2006-03-04 14:49
2006.03.26
Глюки с Delphi IDE под Windows Server 2003


2-1142145894
Glex
2006-03-12 09:44
2006.03.26
Какой движок БД не требует никаких библиотек после компиляции?


15-1141577737
Vendict
2006-03-05 19:55
2006.03.26
Linux + GPRS


2-1141838875
Adios
2006-03-08 20:27
2006.03.26
Проблема с процедурой


1-1140798177
аноним
2006-02-24 19:22
2006.03.26
Помогите разобраться с AV