Re: Font issue
- From: "zen master" <master.aikwee@xxxxxxxxx>
- Date: 28 May 2006 19:37:59 -0700
hi, please check if your image has the following components,
Fonts: coure.fon
Fonts: serife_fon
Fonts: Japanese bitmap & TrueType fonts
Fonts: Fonts symbol_vga_res
Fonts: Small Fonts VGA res
Fonts: sserife_fon
Quentin Liedtke wrote:
Try as I might, I cannot get the courier font to show up in my RichEdit
Text control.
I've added all the font components I can find
I've selected all the Fonts in the "English Language Support" component
properties
I've checked the my final image has the courier TTF file in the font
director (cour.ttf)
No matter what I try, my RichText control always shows text that looks
to be a 4 point font (not sure which font because I cannot see it).
This is the code I use to load the courier font (works fine in XPP):
LOGFONT winFontRec;
winFontRec.lfWidth = 0;
winFontRec.lfEscapement = 0;
winFontRec.lfOrientation = 0;
winFontRec.lfUnderline = false;
winFontRec.lfItalic = false;
winFontRec.lfStrikeOut = 0;
winFontRec.lfCharSet = 0;
winFontRec.lfOutPrecision = 3;
winFontRec.lfClipPrecision = 2;
winFontRec.lfQuality = 1;
winFontRec.lfPitchAndFamily = FIXED_PITCH;
strcpy(winFontRec.lfFaceName, "Courier");
winFontRec.lfHeight = 6;
winFontRec.lfWeight = FW_NORMAL;
HFONT hFont = CreateFontIndirect(&winFontRec);
SendDlgItemMessage(hWndDlg, IDC_OUTTEXT, WM_SETFONT, (WPARAM) hFont,
0);
Can anyone point me to other things to look at in TD or point out what
is wrong with my code ?
Quentin.
.
- References:
- Font issue
- From: Quentin Liedtke
- Font issue
- Prev by Date: Re: Problems with locales
- Next by Date: Re: Remove Hibernation option
- Previous by thread: Font issue
- Next by thread: Re: Taking Too much time to enter a domain in N/W
- Index(es):