Article ID: 137556 - Last Review: July 1, 2004 - Revision: 2.2 How To Determine Font Size SettingThis article was previously published under Q137556 SUMMARY
The code in this article demonstrates how to use the Foxtools.fll library
commands to call Microsoft Windows application programming interface (API)
functions to determine if the current session of Windows is using Small or
Large Fonts. The following API functions are used:
MORE INFORMATION
The program first loads the Foxtools.fll library that is supplied with
FoxPro for Windows. Then it initializes some variables and retrieves the
handle for the display device. Next, it calls the GetDeviceCaps function,
requesting the number of pixels per logical inch along the display width
and height. If the number of pixels is equal to 96, Windows is running
with Small Fonts. If the number of pixels is equal to 120, Windows is
running with Large Fonts. The program then releases the handle to the
display device and the library.
REFERENCES
Microsoft Windows Software Development Kit, "Programmer's Reference, Volume
2: Functions," pages 350-354, 785.
Foxtools.wri located in the C:\Fpw26\Goodies\Foxtools directory. Wingdi.h located in the C:\C700\Include directory | Article Translations
|

Back to the top
