[DUG] Large Fonts/DPI
John Bird
johnkbird at paradise.net.nz
Tue Aug 8 12:20:24 NZST 2006
Thanks for that, I think that explains exactly what is going on - I had set
the font in the program, and also set the grid DefaultRowHeight to be twice
the font size, but if the font size is then rounded up more than the row
height this explains why the grid looks so funny and the text no longer
fits. I will try the option of setting the font to be Arial, I suspect that
may fix the display problems - fingers crossed!
John
-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On
Behalf Of Ross Levis
Sent: Monday, 7 August 2006 4:41 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: RE: [DUG] Large Fonts/DPI
I think the issue is that Windows may round up to the nearest font.
8pt at 120DPI is 10pt (120/96 * 8)
10pt calculates to 12.5pt which becomes 14 pt
12pt calculates to 15pt which becomes 18pt.
So things start getting out of scale compared to the surounding
components.
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: Monday, August 07, 2006 4:09 PM
Subject: SPAM-LOW: RE: [DUG] Large Fonts/DPI
Sorry to be thick - Do you know what choices are usually there for MS
sans
serif under 120DPI?
(I am using like 8/10/12/14 - would have thought they were there)
Or is it just much safer to switch to Arial?
John
-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz]
On
Behalf Of Ross Levis
Sent: Monday, 7 August 2006 2:13 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: RE: [DUG] Large Fonts/DPI
Ah, no. MS Sans Serif does not scale. It has only a selection of sizes
available. You need a TrueType font. I changed all my forms to use Arial
to get proper scalling.
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: Monday, August 07, 2006 2:03 PM
Subject: SPAM-LOW: RE: [DUG] Large Fonts/DPI
The problem I am having is quite limited and specific.....font size in a
grid
The form I am having trouble with is optionally being scaled using scaleby
(works fine)...
the font for the grid is set to a user choice value.
When running on a screen at 120DPI the font size I set (eg 6 or 8 or 10
point) in the grid seems to be either ignored or treated in some bizarre way
- I get a huge font that I would say looks like 12/14 point or larger...
The font is the default grid font, MS Sans Serif, according to my research
should scale fine and be on all versions Windows
(eg see http://www.angelfire.com/al4/rcollins/style/fonts.html )
Handy font reference for universally available fonts.
Musings:
Is the MS Sans Serif font the problem? Cos I can change it programmatically
if that's all it is. From my research it looks like MS Sans Serif should be
a safe font to use....
I will also experiment with what you suggest using scaleby, as I am already
using this anyway (as you say it does a pretty good job) - but shooting in
the dark as I don't have such a 120DPI screen here..
As for saying "don't use large fonts" I don't think I can do that as the PC
was set up by a network provider who set the large fonts to get the fancy
new big LCD screen to work best with the old PC's version of windows
(windows 98 in most cases) and my software is just one of the programs being
used.....unless there is no other choice! ;)
John
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz http://ns3.123.co.nz/mailman/listinfo/delphi
__________ NOD32 1.1461 (20060329) Information __________
This message was checked by NOD32 antivirus system. http://www.eset.com
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz http://ns3.123.co.nz/mailman/listinfo/delphi
__________ NOD32 1.1461 (20060329) Information __________
This message was checked by NOD32 antivirus system. http://www.eset.com
More information about the Delphi
mailing list