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

Function Style_StrGetFont

src/Styles.c:2378–2392  ·  view source on GitHub ↗

============================================================================= Style_StrGetFont()

Source from the content-addressed store, hash-verified

2376// Style_StrGetFont()
2377//
2378BOOL Style_StrGetFont ( LPCWSTR lpszStyle, LPWSTR lpszFont, int cchFont )
2379{
2380 WCHAR tch[256];
2381 WCHAR *p;
2382 if ( p = StrStrI ( lpszStyle, L"font:" ) ) {
2383 lstrcpy ( tch, p + CSTRLEN ( L"font:" ) );
2384 if ( p = StrChr ( tch, L';' ) ) {
2385 *p = L'\0';
2386 }
2387 TrimString ( tch );
2388 lstrcpyn ( lpszFont, tch, cchFont );
2389 return TRUE;
2390 }
2391 return FALSE;
2392}
2393
2394
2395//=============================================================================

Callers 4

Style_SelectFontFunction · 0.85
Style_SelectColorFunction · 0.85
Style_SetStylesFunction · 0.85
Style_SetFontQualityFunction · 0.85

Calls 1

TrimStringFunction · 0.85

Tested by

no test coverage detected