Search code examples
fontsspecificationsopentype

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


I would like to use the CFF2 table since it seems the most recent, as opposed to CFF. However, all the 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 shows only how to do it with 1 or more variants. Wondering what to do.

Maybe I set the VariationStore Data - length to 0 and that's it, I'm not sure.


Solution

  • From the docs page that you linked to, it seems pretty clear:

    Table 9 Top DICT Operator Entries

    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.

    So, don't put a vstore operator into topDICT.