Is there same simple sample to get a correct and good size of font when working on screen with very high resolution ?
thanks
Size of Font
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Re: Size of Font
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
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
Re: Size of Font
Yes, it can help me
tks
R
tks
R