如何使用 CFF2 在 OpenType 中定义没有任何变体的字体 table

How to define a font without any variants in OpenType with CFF2 table

我想使用 CFF2 table 因为它看起来是最新的,而不是 CFF。但是,所有 docs seem to only say how to define a font with variants. However, I don't want to have any variants of my font, at least at first, I just want 1 font, no variants. I'm wondering what I do in terms of leaving the tables out of the equation. The example 只显示了如何使用 1 个或多个变体来实现。想知道该怎么办。

也许我将 VariationStore Data - length 设置为 0,仅此而已,我不确定。

从您链接到的文档页面来看,似乎很清楚:

Table 9 个顶级 DICT 运算符条目

The vstore operator and the data it points to are required if variation data is present, and must be omitted if there is no varation data.

所以,不要将 vstore 运算符放入 topDICT。

如果您不创建可变字体(无 vstore),那么使用 CFF2 table 而不是 CFF table 没有明显的好处:CFF2 table基本上是 CFF table 的扩展,增加了存储字形变化数据的能力。在此过程中对遗留问题进行了一些清理,但这并没有产生任何功能上的差异。