ClosestFontEnumerator Class Reference

List of all members.

Public Member Functions

bool OnFacename (const wxString &font)
 Callback function for font enumeration - passes call on to the kernel Panose Panose matcher.

Detailed Description

Definition at line 444 of file ftfonts.cpp.


Member Function Documentation

bool ClosestFontEnumerator::OnFacename const wxString &  font  ) 
 

Callback function for font enumeration - passes call on to the kernel Panose Panose matcher.

Author:
Martin Wuerthner <xara@mw-software.com>
Date:
19/04/06
Parameters:
font - the Facename of an enumerated font [INPUTS]

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 }


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 03:52:35 2007 for Camelot by  doxygen 1.4.4