Font Size limit?
-
I am trying to change font size in an edit box with the following code. There seems to be a limit on the size I can get, regardless of the params in
font.CreatePointFont
. The max seems to be about 14 point bold. How can I get a larger size?CFont font; font.CreatePointFont(920, "Garamond"); CFont *pFont = (&font); GetDlgItem(IDC_EDIT_Utility)-> SetFont(pFont, TRUE);
-
I am trying to change font size in an edit box with the following code. There seems to be a limit on the size I can get, regardless of the params in
font.CreatePointFont
. The max seems to be about 14 point bold. How can I get a larger size?CFont font; font.CreatePointFont(920, "Garamond"); CFont *pFont = (&font); GetDlgItem(IDC_EDIT_Utility)-> SetFont(pFont, TRUE);
How are you checking to see if you get the requested size? You could try checking the created font to see the attributes of the created font: CFont font; font.CreatePointFont(920, "Garamond"); LOGFONT logfont; font.GetLogFont(&logfont); Is that the way you've coded to create the font? If so, if "font" goes out of scope then the fonts handle (HFONT) is destroyed. Mark