Public Member Functions | |
bool | OnFacename (const wxString &font) |
Callback function for font enumeration - passes call on to the kernel Panose Panose matcher. |
Definition at line 444 of file ftfonts.cpp.
|
Callback function for font enumeration - passes call on to the kernel Panose Panose matcher.
Definition at line 464 of file ftfonts.cpp. 00465 { 00466 // we need to pass a ENUMLOGFONT structure to the kernel 00467 // we can pass pointers to transient structures - the kernel copies the data if it is the 00468 // best match so far 00469 // We can only handle names that have less than 64 characters - see MyFontEnumerator::OnFacename 00470 if (font.length() > 63) return TRUE; 00471 String_64 OurFontName = font; 00472 ENUMLOGFONT OurEnumLogFont; 00473 OurEnumLogFont.elfLogFont.FaceName = font; 00474 FontManager* pFontMan = GetApplication()->GetFontManager(); 00475 return pFontMan->FindClosestFontFullTry(FTFontMan::GetFontClass(OurFontName), 00476 &OurEnumLogFont.elfLogFont.FaceName, &OurEnumLogFont); 00477 }
|