Registry

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
 
G

Guest

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!
***************************
 
S

Saurabh

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top