Size of Font

Post Reply
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Size of Font

Post by Romeo »

Is there same simple sample to get a correct and good size of font when working on screen with very high resolution ?

thanks
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Size of Font

Post by James Bott »

Romeo,

Technically, fonts sizes are defined using "points" which are a linear measurement so they should remain the same with different screen resolutions.

oFont:nHeight = height of the font in points (1 point is 1/72 of an inch)

DEFINE FONT oFont SIZE 0,-12 // defines a 12 point font

So, if you define a 12 point font it should always be 12/72 inches high or 0.17 inches high, regardless of the screen resolution. I have never tried to measure this on different screens though.

Is this not what you are seeing?

James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: Size of Font

Post by Romeo »

Yes, it can help me

tks
R
Post Reply