Font issue

Q

Quentin Liedtke

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.
 
Z

zen master

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top