LSB miscalculated in TTF export

RoboFont Forums Bugs LSB miscalculated in TTF export

This topic contains 1 reply, has 2 voices, and was last updated by  frederik 5 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6078

    Jens K.
    Participant

    The LSB value in the hmtx table is miscalculated when exporting TTFs which have off-curve points as the leftmost point …

    See attached example TTF, both glyphs, /A and /a, have a LSB of 30 in the hmtx table, but for /a it should be about 13.

    This causes the outlines in the exported TTFs to shift noticeably to the right.

    Attachments:
    You must be logged in to view attached files.
    #6082

    frederik
    Keymaster

    Thanks Jens

    its seems to be a fontTools issue :)

    http://sourceforge.net/p/fonttools/code/ci/master/tree/Lib/fontTools/ttLib/tables/_g_l_y_f.py#l549

    it seems to recalculate the bounds from all points instead of analysing the bounds of the contour

    (this will be fixed in the next version…

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.