============================================================================= Style_StrGetFont()
| 2376 | // Style_StrGetFont() |
| 2377 | // |
| 2378 | BOOL 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 | //============================================================================= |
no test coverage detected