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