[MPEG-OTSPEC] Some research on TT instructions and cubics
Georg Seifert
typogeorg at gmail.com
Fri Sep 22 14:25:35 CEST 2023
> Am 22.09.2023 um 14:01 schrieb Skef Iterum <skef at skef.org>:
>
> In the August meeting in Portland (and in some exchanges before that) some questions were raised about the feasibility of hinting cubic splines in glyf with the existing TT instruction set. One response was that this was not likely to be a problem as it is relatively rare in practice to move quadratic control points (as opposed to on-curve points). The idea being that the fact that a cubic has two control points rather than one shouldn't be an issue.
>
> Some folks on our team at Adobe decided to look into this a bit more, although not at great depth. From what we can tell, when the convention of only moving on-curve points works, that is typically because of a subsequent call to of the IUP instruction in one or both dimensions. That instruction is described this way <https://developer.apple.com/fonts/TrueType-Reference-Manual/RM05/Chap5.html#IUP>:
>
> Interpolates untouched points in the zone referenced by zp2 to preserve the original relationship of the untouched points to the other points in that zone.
>
> Unfortunately the documentation goes on to say:
>
> Considers the reference glyph outline contour by contour, moving any untouched points that fall sequentially between a pair of touched points.
>
> If neither cubic control point is hinted, neither will fall sequentially between a pair of touched points, and therefore cubic control points will typically not move in relation to how their adjacent on-curve points move.
>
As I understand this, it doesn't matter what point before or after is touched and if that is in the same "segment". It basically ignores the flags and just looks at the contour points (and the previous and next point can be the same, then the whole contour moves in the same direction). And thous I don't see any difference with hinting control point in cubic or quadratics.
Georg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.aau.at/pipermail/mpeg-otspec/attachments/20230922/9cb8339b/attachment.html>
More information about the mpeg-otspec
mailing list