[Lazarus] Lazarus has unique font sizes

Marc Weustink marc at dommelstein.net
Sat Aug 15 12:47:53 CEST 2009


Jürgen Hestermann wrote:
>> Does anybody else excluding Paul know what negative fonts sizes mean? 
> 
> I would like to know that too. I also don't have any idea what negative 
> font sizes could mean. Ok, that could be due to the fact that I havened 
> used Delphi heavily and I am just beginning with Lazarus. But even using 
> help on such entries does not show any hint.

I admit a little explenation would help since it is not so trivial.

A positive fontsize is the size of a font in points
A negative fontsize is the size of a font in points including the 
internal leading at the top of the line

For fontheights it is the opposite since the height and size are related 
like:
  fontsize = -fontheight * 72/pixelsperinch

What happens is I think that the fontheight is stored (positive) which 
results in a negative size.

Marc





More information about the Lazarus mailing list