[maemo-developers] border in osso-xterm in fullscreen?

From: Giacomo Tufano gt at ilTofa.it
Date: Thu Aug 7 10:48:31 EEST 2008
Il giorno 07/ago/08, alle ore 09:02, Eero Tamminen ha scritto:
> ext Frantisek Dufka wrote:
>> Tried it just to verify the bug and now I have another mystery :-)  
>> I am
>> no expert on font sizes and units but from the information on the  
>> net it
>> looks like there are two main units - pixels and points. Point is  
>> 1/72
>> inches so 1 pixel = 1 point at 72 dpi. At 96dpi (our tablet or any MS
>> Windows OS in normal configuration) 1 point is 1.33 (or 4/3) pixels  
>> so
>> 12 points = 16 pixels. On tablet this should produce 480/16=30 lines.
>> The mystery is that Dejavu font at 12 points gives me only 25 lines +
>> some tiny space like 2 pixels. And same happens for Courier New  
>> copied
>> from Windows. This would mean pixel height for those fonts is  
>> slightly
>> more than 480/25=19.2, why?.
>
> I think the font point size of a font most often(?) means the size
> between font ascender and descender, not the full line height.
> This is up to font designer though...

http://en.wikipedia.org/wiki/Em_(typography) have, probably, the  
informations you're looking for. The answer to the Frantisek problem  
is, IMHO, that (citing the page) "In digital type, the relationship of  
the height of particular letters to the em is arbitrarily set by the  
typeface designer. However, as a very rough guideline, an "average"  
font might have a cap height of 70% of the em, and an x-height of 48%  
of the em". These differences could account for the numbers Frantisek  
found...

My 2 €cents,
gt

More information about the maemo-developers mailing list