Registry

  • Thread starter Thread starter Charles A. Lackman
  • Start date Start date
C

Charles A. Lackman

Can anyone tell me where would I look in the registry to find out is a user
is using Large Fonts or Normal Fonts?

I need to know this from the registry so that I can make a program display
differently based on what the systems fonts are set to.


Thanks,

Chuck
 
To check (not set), you should be able to examine:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontDPI

This is a hex number, so 60 = 96 pixels (standard), while 78 =120 pixels
(large fonts).

If you are going to set Font values, the computer must be reset for them to
propagate to the many registry entries that have to be set.

NOTE: I am not certain this holds for all versions of windows.


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
This is a reply to the OP,

..NET scales the forms depending on the DPI setting so that you don't need to
do it. It stores the font size when the form was created, then during
runtime it performs a comparison between the BaseSize and the current size
and scales the forms accordingly.
 
Back
Top