============================================================================= Style_StrGetFontQuality()
| 2397 | // Style_StrGetFontQuality() |
| 2398 | // |
| 2399 | BOOL 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 | //============================================================================= |
no test coverage detected