| 352 | } |
| 353 | |
| 354 | BOOL IsFontAvailable ( LPCWSTR lpszFontName ) |
| 355 | { |
| 356 | BOOL fFound = FALSE; |
| 357 | HDC hDC = GetDC ( NULL ); |
| 358 | EnumFonts ( hDC, lpszFontName, EnumFontsProc, ( LPARAM ) &fFound ); |
| 359 | ReleaseDC ( NULL, hDC ); |
| 360 | return ( fFound ); |
| 361 | } |
| 362 | |
| 363 | |
| 364 | //============================================================================= |