large Fonts/ small fonts

Hi,
some graphic-drivers allow the user to choose the size of the used fonts on the screen:
large fonts(=125%) and small fonts(=100%) and others....
How can i get the information (under D3/WIN98), which fontsize the user has selected ? (i think there must be an API-Call).

Thanks

Titz
LVL 1
titzAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PeterLarsenCommented:
Could you give us an example of a component ??
0
intheCommented:
hi,
you dont need an api call you can check the font size by Checking the TForm.PixelsPerInch property. This will be set to 96 for small and 120 for large.

procedure TForm1.Button1Click(Sender: TObject);
begin
showmessage(inttostr(form1.PixelsPerInch));
end;

Regards Barry
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
titzAuthor Commented:
hi inthe,
that is the solution !
Thanks and a nice day !
Titz
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.