[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Ascent and descent
From: |
Khaled Hosny |
Subject: |
Re: [ft] Ascent and descent |
Date: |
Wed, 29 Aug 2018 01:10:42 +0200 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Tue, Aug 28, 2018 at 07:11:26PM -0300, Dalai Felinto wrote:
> Hi,
>
> I'm trying to get the ascent and descent of a font with freetype2. The
> sample code is really small and can be found here [1].
>
> However the values I get are very different from what FontForge and even
> google slides is using.
>
> For example, the Indie Flower font [2] has 819 and 205 (0.8, 0.2) according
> to FontForge. However, in freetype2 I'm getting 994 and (-)500 (0.67 and
> 0.33).
>
> The same is valid for numerous other fonts that I tried (which curiously
> all had 0.8 and 0.2 proportional values).
In FontForge you should look under Font Info → OS/2 → Metrics, the
values you see under Font Info → General are not actually used for
anything in the exported font AFAIK.
Regards,
Khaled