truetype font ARGS_ARE_XY_VALUES 是什么意思?

truetype font ARGS_ARE_XY_VALUES meaning?

在glyf table中,如果一个字形是复合字形,如果没有设置标志ARGS_ARE_XY_VALUES,我不明白这是什么意思。 msdn 文档说

the first point number indicates the point that is to be matched to the new glyph. The second number indicates the new glyph’s “matched” point. Once a glyph is added, its point numbers begin directly after the last glyphs (endpoint of first glyph + 1).

但我不知道这是什么意思:

What is a "point number"? Is it an index into the glyph's points?

是的。它是构成字形轮廓(如字形轮廓数据中所定义)的坐标对数组的索引。

What does "matched to the new glyph" mean?

这意味着 composite/compound 字形的新组件字形将被定位,以便其“匹配点”的坐标等于基本组件字形的“匹配点”的坐标。换句话说:这样两个组件的指示点 匹配 。对于每个新的组件字形重复此操作,已匹配组件的点 numbers/indices 被视为单个基本组件字形。

A​​pple 的 TrueType 规范对这个标志的含义更清楚一些。它表示如果未设置 ARGS_ARE_XY_VALUES 标志:

1st short contains the index of matching point in compound being constructed
2nd short contains index of matching point in component

来源:https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6glyf.html

也就是说,设m为第一个短,n为第二个,则点坐标[=19=新组件的 ]n 应该与目前构造的复合字形的点 m 具有相同的坐标。