[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft-devel] ttfautohint: broken components when ARGS_ARE_XY_VALUES is fal
[ft-devel] ttfautohint: broken components when ARGS_ARE_XY_VALUES is false
Fri, 05 Aug 2016 20:36:07 +0000
When composite glyphs have components with ARGS_ARE_XY_VALUES false, i.e. arg1 and arg2 are matched point indeces, `ttfautohint --composites` incorrectly increments the second matched point index. It should only change the second matched point if the component glyph has changed point indeces instead of all the time.
For example, when Molengo-Reular.ttf (from https://github.com/moyogo/molengo-fonts/releases/download/v0.10/Molengo-fonts-0.10.tar.gz
) goes through ttfautohint --composites, the composite glyphs are broken.
The gravecomb glyph does not have any point index changes. However it is used as a component in Agrave, while ttfautohint correctly increments the first matched point, i.e. the point index to match on the whole composite Agrave, it also incorrectly increments the second matched point index (arg2), i.e. the point index being matched on gravecomb. The first point needs to be incremented since a '.ttfautohint' component with one point is added as the first component. But the second point should not since no point index where changed in gravecomb.
- [ft-devel] ttfautohint: broken components when ARGS_ARE_XY_VALUES is false,
Denis Jacquerye <=