ID Number: Q74300
3.00 3.10
WINDOWS
Summary:
The generic formula listed below can be used to compute the point size
of a font. However, any other formulas that produce satisfactory results
may also be used.
More Information:
(Height - Internal Leading) * 72
Point Size = ---------------------------------
LOGPIXELSY
Height - Cell height obtained from the TEXTMETRIC structure.
Internal Leading - Internal leading obtained from TEXTMETRIC
structure.
72 - One point is 1/72 of an inch.
LOGPIXELSY - Number of pixels contained in a logical inch on the
device. This value can be obtained by calling the
GetDeviceCaps function and specifying the LOGPIXELSY
index.
The value returned from this calculation should be rounded to the
nearest integer. The WindowsfMulDiv function rounds its result
and is an excellent choice for performing the above calculation.
Additional reference words: 3.00 3.10