[Freefont-devel] Re: About the bug in freefonts

Panayotis Katsaloulis panayotis@panayotis.com
Mon, 22 Nov 2004 11:12:09 +0200


In newer versions of freefont it overwrites the Hhead* values with
zero. Probably that's why now the hack is not working. I'll have a
look and see what can I do.


On Sun, 21 Nov 2004 18:06:23 -0800, Josh Triplett <josh.trip@verizon.net> wrote:
...
> As far as I can tell, either fontforge is miscalculating the dimensions
> of the glyphs, or there are some glyphs with bad dimensions.  One way to
> observe this is to remove almost all of the glyphs from one of the
> fonts, and then generate it; it will have more reasonable dimensions.
> However, fontforge should not just ignore the specified Ascent and
> Descent values in the font.  While investigating the sfd format, I found
> the HheadAscent and HheadDescent values; experimenting with these showed
> that they were directly added to the Ascent and Descent.  I then just
> checked the Ascent and Descent generated by FontForge, and set the
> HheadAscent and HheadDescent values such that they corrected the
> difference between what fontforge supplied and the desired values.  One
> of the reasons this is a hack is that the values need to be updated
> every time something is changed that affects the Ascent and Descent
> fontforge calculates; the way to update the hack is to remove the Hhead*
> values, generate the fonts, and re-add the appropriate Hhead* values to
> cancel out the differences between those and the desired Ascent and
> Descent values.