silnrsi / smith

font development, testing and release
Other
14 stars 5 forks source link

Support alias and config files for TypeTuner #48

Closed nrsiward closed 5 years ago

nrsiward commented 6 years ago

Add a TypeTuner class, tt, which can be passed as the value of the typetuner parameter for the font class. For example:

font( target=..., 
    typetuner=tt('features.xml', aliases='fea_aliases.csv', config = [config.xml]), 
    ... )

The presence of the tt object will:

  1. cause the alias file (e.g. fea_aliases.csv) to be generated when the fea is compiled by psfbuildfea
  2. cause TypeTuner to be ran such that the features xml file is added to the built font with the aliases and config files passed as parameters

See Font Workflow 167 TypeTuner for details.

mhosken commented 6 years ago

Waiting on CLI changes to typetuner. When those are resolved, return here and indicate that this bug is ready to go.

bobh0303 commented 5 years ago

With the addition of tuneraliases command to pysilfont and additional logic in smith (f512693e and 8b912e7a), we have support for TypeTuner workflow. To use, add typetuner parameter to designspace() function in wscript:

typetuner = typetuner('source/feat_all.xml'),

Opentype and Graphite aliases for the compiled font will be merged with any existing aliases in the feat_all.xml.

mhosken commented 5 years ago

You also need a mapfile parameter to your opentype fea() object.