Link to home
Start Free TrialLog in
Avatar of tfarmer
tfarmer

asked on

Font height in RichEdit control

I'm using a richedit control as a editor in an application that is producing information to be displayed on screen. We want the font sizes to be always the same regardless of the
Windows settings so I'm using the Height property to specify the pixel height rather use the the Size property.
The problem is that certain pixel heights cannot be selected in the richedit. It appears  that only heights that map directly to point sizes are allowed. For example at the standard small fonts setting of 96dpi, a 14 point font is 19 pixels high, and can be shown. But at the large font setting of 120dpi there is no point size corresponding to this height and the richedit control changes the height to 18.

Any suggestions?

Terry Farmer
Avatar of brainware
brainware

What about Reading the Font Settings in Registry and use the font+sizes user have configured?
The info stored in windows is not the dpi/pixels but Font Size?
or do i remember wrong..
ASKER CERTIFIED SOLUTION
Avatar of rwilson032697
rwilson032697

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial