freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Freetype] Short question


From: Werner LEMBERG
Subject: Re: [Freetype] Short question
Date: Wed, 06 Aug 2003 19:15:42 +0200 (CEST)

> How can I get general font metrics (acsent/descent) in twips or
> pixels ?
>
> The value I get simply dividing the values by 64 is not even close
> to what I expect
>
> (face->size->metrics->acsender == 90 px for 12pt font ?)

Why not?  It also depends on the ppem/dpi value:

  ppem = size * dpi / 72;

For example, if I have 12pt for 1440dpi (this is twips, right?), I get
a ppem of 240, thus a value of 90 for the ascender of a lowercase
letter is not unlikely.


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]