FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Size of Font
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Size of Font
Posted: Mon May 23, 2016 02: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

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Size of Font
Posted: Wed Jun 01, 2016 03: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
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: Size of Font
Posted: Fri Jul 08, 2016 04:51 PM

Yes, it can help me

tks
R

Continue the discussion