CFF2 Fonts
Convert exported OTF fonts to CFF2.
Compact Font Format Version 2 is a newer version of the common CFF (v1) that is used in OTF fonts. It was introduced in version 1.8 of the OpenType specification. CFF2 offers a smaller file size and allows for overlapping glyph paths without the rendering errors apparent in CFF (v1).
CFF2 fonts can also be variable fonts, but Corretto (and Glyphs) doesn’t support those yet.
CFF2 fonts can be used in current versions of Windows, macOS, Linux, Adobe applications, and web browsers.
Parameter
de.kutilek.corretto.cff2
Format
relative_folder_path
The path, relative to the export destination, in which the CFF2 fonts will be saved. CFF2 fonts also use the .otf suffix, so if you need to retain the original OTF fonts, you should specify a different folder here. The folder needs to exist before the fonts are exported.
It is possible to overwrite the original fonts by specifying the current directory, ".".
Example
{
customParameters = (
{
name = de.kutilek.corretto.cff2;
value = "../cff2";
}
);
}
Explanation: Save a CFF2 version of the exported font to the sibling folder of the exported font’s folder. Example file structure:
─┬─ MyProject
├─ source
│ └─ MyFont.glyphs
├─ otf
│ └─ MyFont.otf
└─ cff2
└─ MyFont.otf
Known Issues
Corretto can’t generate webfonts with a CFF2 table yet.
If you upgraded from Corretto v2.0.2 or earlier, make sure to add the module line for the SaveCFF2Static plugin to your global Corretto configuration file at ~/Library/Application Support/Glyphs 3/global.correttoconfig.yaml:
corretto:
plugins:
# ...
- module: corretto.plugins.Save # This line should already exist
- module: corretto.plugins.SaveCFF2Static # <-- Add this line
- module: corretto.plugins.SaveTTX # This line should already exist
# ...