[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freetype] Buggy metrics with FreeType 2 and BDF or PCF fonts?
From: |
Werner LEMBERG |
Subject: |
Re: [Freetype] Buggy metrics with FreeType 2 and BDF or PCF fonts? |
Date: |
Sun, 18 Aug 2002 16:06:54 +0200 (CEST) |
>
> I'm attaching a little test program that you should run on 8x13.bdf
> and 8x13.pcf. Please notice the (x, y) couple printed for every
> glyph, which are, respectively,
>
> face->glyph->metrics.horiBearingX and
> face->glyph->metrics.horiBearingY.
>
> The 8x13 font has a bounding box of (0, -2) through (8, 11). Thus, I
> believe that the correct values should be (0, 704). However, I'm
> getting
>
> (0, -128) for the BDF version; and
> (512, 704) for PCF version.
>
> Can anyone confirm this bug, or tell me what I'm doing wrong?
I can confirm that.
PCF: It is a typo in pcfdriver.c which uses `rightSideBearing' instead
of `leftSideBearing'.
BDF: The bitmap's height was missing in horiBearingY.
I've fixed that in the CVS. Thanks for the report.
Werner