-
October 21st, 2015, 01:32 PM
#1
Calculating the real lfWidth value of LOGFONT when lfWidth = 0
Hi, I'm wondering how to calculate what the real value of lfWidth in the LOGFONT structure when it is set to 0.
MSDN says that if the value is zero, the digitization aspect ratio is used to determine the width. I had hoped this meant the tmDigitizedAspectX and tmDigitizedAspectY members of TEXTMETRIC, but they always seem to be 96 and 96, regardless of font selected.
If I create a new LOGFONT with lfWidth = lfHeight, the aspect ratio of the font is often wrong - clearly fonts have aspect ratio data somewhere, for example if I do this with @Meriyo, it works almost perfectly the same as if lfWidth=0, if I do it with @Meriyo UI, it's clearly about 2x wide.
Any help would be greatly appreciated!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|