Size of Font

Size of Font

Postby Romeo » Mon May 23, 2016 2:03 pm

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

thanks
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: Size of Font

Postby James Bott » Wed Jun 01, 2016 3:14 pm

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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Size of Font

Postby Romeo » Fri Jul 08, 2016 4:51 pm

Yes, it can help me

tks
R
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 67 guests

cron