Corretto – Font Post-Processing for Glyphs

Working with ttx Files

Corretto can save a copy of your font in ttx format, or merge tables from ttx files into your font.

Merging external input files into the font.

Merge one or more external ttx input files into the font. This will overwrite each matching table in the exported font with table data from the ttx file, or add tables to the font that are present in the external ttx file, but not in the font.

You can add custom tables this way, or you can overwrite the output of Glyphs if it doesn’t suit your needs. For example, for some variable font setups, Glyphs just cannot produce a correct STAT table.

Parameter

de.kutilek.corretto.merge

Format

relative_file_path[:relative_file_path]

A colon-separated list of paths to ttx input files, relative to the path of the exported font.

Example

{
  customParameters = (
    {
      name = de.kutilek.corretto.merge;
      value = "../patches/STAT.ttx:../patches/avar.ttx";
    }
  );
}

Explanation: Merge the TTX file called STAT.ttx from the sibling folder of the exported font’s folder, then merge the file avar.ttx from the same location. Example file structure:

+--MyProject
   +--patches
   |  +--avar.ttx
   |  +--STAT.ttx
   +--source
   |  +--MyFont.glyphs
   +--ttf
   |  +--MyFont.ttf

Save an xml dump of the font to a ttx output file.

Font dumps in ttx files are useful in connection with git version control to see exactly what has changed in a binary font file between exports.

Parameter

de.kutilek.corretto.ttx

Format

relative_folder_path

Example

{
  customParameters = (
    {
      name = de.kutilek.corretto.ttx;
      value = "../ttf_ttx";
    }
  );
}

Explanation: Save an xml dump of the exported font to the sibling folder of the exported font’s folder. Example file structure:

+--MyProject
   +--source
   |  +--MyFont.glyphs
   +--ttf
   |  +--MyFont.ttf
   +--ttf_ttx
   |  +--MyFont.ttx