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

Function Style_StrGetFontQuality

src/Styles.c:2399–2418  ·  view source on GitHub ↗

============================================================================= Style_StrGetFontQuality()

Source from the content-addressed store, hash-verified

2397// Style_StrGetFontQuality()
2398//
2399BOOL Style_StrGetFontQuality ( LPCWSTR lpszStyle, LPWSTR lpszQuality, int cchQuality )
2400{
2401 WCHAR tch[256];
2402 WCHAR *p;
2403 if ( p = StrStrI ( lpszStyle, L"smoothing:" ) ) {
2404 lstrcpy ( tch, p + CSTRLEN ( L"smoothing:" ) );
2405 if ( p = StrChr ( tch, L';' ) ) {
2406 *p = L'\0';
2407 }
2408 TrimString ( tch );
2409 if ( lstrcmpi ( tch, L"none" ) == 0 ||
2410 lstrcmpi ( tch, L"standard" ) == 0 ||
2411 lstrcmpi ( tch, L"cleartype" ) == 0 ||
2412 lstrcmpi ( tch, L"default" ) == 0 ) {
2413 lstrcpyn ( lpszQuality, tch, cchQuality );
2414 return TRUE;
2415 }
2416 }
2417 return FALSE;
2418}
2419
2420
2421//=============================================================================

Callers 3

Style_SelectFontFunction · 0.85
Style_SelectColorFunction · 0.85
Style_SetFontQualityFunction · 0.85

Calls 1

TrimStringFunction · 0.85

Tested by

no test coverage detected