freetype-devel
[Top][All Lists]
Advanced

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

Re: Incorrect vertBearingY for CFF fonts


From: Werner LEMBERG
Subject: Re: Incorrect vertBearingY for CFF fonts
Date: Thu, 24 Sep 2020 09:36:05 +0200 (CEST)

Hello Eric,


sorry for the late reply.

> In cff/cffgload.c, at the end, in the function cff_slot_load: The
> bearings are set early on from calls to a get_metrics() font method.
> Those values are in font design units.  Then towards the end of the
> cff_slot_load, there is a call to FT_Outline_Get_CBox, that
> retrieves the glyph bbox in scaled units.  That sets
> horiBearing{X,Y} and vertBearingX but vertBearingY is left alone,
> and is not scaled.  In the "if (has_vertical_info)" that sets
> metrics->vertBearingX, there should be a scaling of vertBearingY,
> e.g. "metrics->vertBearingY = FT_MulFix (metrics->vertBearingY,
> glyph->y_scale);"

Thanks for the report; I've applied your suggestion to the git
repository.


    Werner



reply via email to

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