Inheritance diagram for CDRFontnameStoredItemEnumer:
Public Member Functions | |
CDRFontnameStoredItemEnumer () | |
BOOL | NewFont (FontClass Class, ENUMLOGFONT FAR *lpelf, NEWTEXTMETRIC FAR *lpntm) |
Public Attributes | |
TCHAR * | TheFontName |
FontClass | TheFontClass |
BOOL | Found |
String_64 | TheRealFontName |
Definition at line 1959 of file cdrtext.cpp.
|
Definition at line 1962 of file cdrtext.cpp. 01962 {TheFontName = 0; Found = FALSE;};
|
|
Definition at line 1973 of file cdrtext.cpp. 01974 { 01975 // got it already? 01976 if(Found) 01977 return TRUE; 01978 01979 // check we've got a nice font name 01980 ERROR3IF(TheFontName == 0, "Set up that silly little font name first, there's a good chap"); 01981 01982 TRACEUSER( "Ben", _T("against %s\n"), lpelf->elfLogFont.lfFaceName); 01983 // do a case insenstive compare of the two fontnames 01984 if(_tcsncicmp(TheFontName, lpelf->elfLogFont.lfFaceName, 64) == 0) 01985 { 01986 TRACEUSER( "Ben", _T("MATCH\n")); 01987 // then we've found the thingy we want - let's have it... 01988 Found = TRUE; 01989 01990 // store the font class 01991 TheFontClass = Class; 01992 01993 // copy across the real font name 01994 TheRealFontName = lpelf->elfLogFont.lfFaceName; 01995 } 01996 01997 return TRUE; 01998 }
|
|
Definition at line 1966 of file cdrtext.cpp. |
|
Definition at line 1965 of file cdrtext.cpp. |
|
Definition at line 1962 of file cdrtext.cpp. |
|
Definition at line 1967 of file cdrtext.cpp. |