Microsoft KB Archive/264243

{|
 * width="100%"|

HOWTO: Calculate the Point Font Size

 * }

Q264243

-

The information in this article applies to:


 * Microsoft Windows 2000 Driver Development Kit (DDK)
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Professional
 * Microsoft Windows NT 4.0 Driver Development Kit (DDK)
 * Microsoft Windows NT Server version 4.0
 * Microsoft Windows NT Workstation version 4.0

-

SUMMARY
This article discusses a general procedure for calculating or computing the point font size of TrueType fonts.

MORE INFORMATION
Use the following steps to calculate or compute the point font size of TrueType fonts:


 * Retrieve the notional-to-device transform (XFORMOBJ *pxo) for the specified font (FONTOBJ *pfo), as follows:
 * Download the associated xform transform (XFORML xform), as follows:
 * Compute the the X and Y scale for the general case, as follows:
 * Find fwdUnitsPerEm (the em-height of the font) from the IFIMETRICS structure, by calling:
 * Find sizLogResPpi, (the resolution of the device for which this font is realized) from the structure FONTOBJ *pfo (iFile and iFace are from the same FONTOBJ structure).
 * Compute the point size by using the following formula:

Additional query words:

Keywords : kbDDK kbOSWin2000 kbPrinting _IK kbGrpDSNTDDK

Issue type : kbhowto

Technology : kbWinNTsearch kbWinNTWsearch kbWinNTW400 kbWinNTW400search kbWinNT400xsearch kbwin2000AdvServ kbwin2000AdvServSearch kbwin2000Serv kbWinNTSsearch kbWinNTS400xsearch kbWinNTS400 kbwin2000ServSearch kbwin2000Search kbwin2000ProSearch kbwin2000Pro kbwin2000DDK kbAudDeveloper kbWinDDKSearch kbWinAdvServSearch kbWinNT400DDK