read Windows Font Size
Posted on 1997-08-14
In a Delphi program I display text from a textfile, with
a specifiable font size on a window.
The problem off course is, that when someone on the network
has changed his
Start->Settings->Control Panel->Display->Setting->Font Size
setting to Large fonts, he can't read all of the text.
My question is:
How can I determiner this setting in delphi (remember
a Windows APi call, but I can get the use of parameters
right, so please give a example procedure).
How can I map these large fonts to small fonts
,calculate the font size to use (
I mean I want the person with the large fonts settings
to see the same size of the text in my programwindow,
he would see if you used the small fonts settings).
Can I just divide a certain font size by half?
Is this a constant?