MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / IsFontAvailable

Function IsFontAvailable

src/Helpers.c:354–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354BOOL 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//=============================================================================

Callers 1

Style_SetLexerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected