SPAM-LOW: [DUG] Large Fonts/DPI

Ross Levis ross at stationplaylist.com
Fri Aug 4 20:16:00 NZST 2006


PixelsPerInch is the Form property to check.  This will be 90 or 120, 
for example.

I can't really help I don't think.  I had many problems with just normal 
form scaling at different DPI settings and I eventually took a 
recommendation to do all development at 120 DPI.  Then everything scales 
down to 90 DPI fine.  In reverse you can end up with controls 
overlapping and things like that.

Ross.

----- Original Message ----- 
From: "John Bird" <johnkbird at paradise.net.nz>
To: "'NZ Borland Developers Group - Delphi List'" <delphi at ns3.123.co.nz>
Sent: Friday, August 04, 2006 7:52 PM
Subject: SPAM-LOW: [DUG] Large Fonts/DPI


I have come across something I have not seen before - and I do not
understand the issues involved and what I need do do, so please help!

Background:
I have some forms I resize according to users screen resolution, and 
also
settable options which font sizes are to be used in grids, and also 
default
row height.  Both specified in points.  Behaves nicely on most screens

-Except-

Where screen has been set to use large fonts, eg 120DPI, eg Windows 98 
with
a large resolution LCD screen.  The fonts I have set in the grid then 
become
enormous, nothing like 8 pt which is the default and unreadable.  So how 
do
I detect the DPI setting, what does it mean for my app, and how do I 
adjust
the font size.....I am able to do that, but unsure what to adjust.

Any advice or web sites?

John 



More information about the Delphi mailing list