Alejandro Nadal
2022-10-21 10:23:44 UTC
23 years later, thanks for this info :) . I hope you are still there.
Points ? Pixels ? Millimetres ?
Vertical Height ? Horizontal Width ?
structure member "lfHeight"
Specifies the height, in logical units, of the font's character cell
or character. The character height value (also known as the em height)
is the character cell height value minus the internal-leading value.
The font mapper interprets the value specified in lfHeight in the
following manner.
The font mapper transforms this value into device units and matches it
against the cell height of the available fonts.
The font mapper uses a default height value when it searches for a
match.
The font mapper transforms this value into device units and matches
its absolute value against the character height of the available
fonts.
For all height comparisons, the font mapper looks for the largest font
that does not exceed the requested size.
This mapping occurs when the font is used for the first time.
For the MM_TEXT mapping mode, you can use the following formula to
lfHeight = -MulDiv(PointSize, GetDeviceCaps(hDC, LOGPIXELSY), 72);
Hope this helps,
Jim M
--
@ Derbyshire
I believe this is a simple question,
but I just can't find the answer.
Thank you in advance.
Yong Wang
What size do you want ?but I just can't find the answer.
Thank you in advance.
Yong Wang
Points ? Pixels ? Millimetres ?
Vertical Height ? Horizontal Width ?
structure member "lfHeight"
Specifies the height, in logical units, of the font's character cell
or character. The character height value (also known as the em height)
is the character cell height value minus the internal-leading value.
The font mapper interprets the value specified in lfHeight in the
following manner.
The font mapper transforms this value into device units and matches it
against the cell height of the available fonts.
The font mapper uses a default height value when it searches for a
match.
The font mapper transforms this value into device units and matches
its absolute value against the character height of the available
fonts.
For all height comparisons, the font mapper looks for the largest font
that does not exceed the requested size.
This mapping occurs when the font is used for the first time.
For the MM_TEXT mapping mode, you can use the following formula to
lfHeight = -MulDiv(PointSize, GetDeviceCaps(hDC, LOGPIXELSY), 72);
Hope this helps,
Jim M
--
@ Derbyshire