robotools / fontParts

The replacement for RoboFab
MIT License
133 stars 44 forks source link

font.interpolate with incompatible layerOrders + a public.default layer name #674

Open typemytype opened 1 year ago

typemytype commented 1 year ago

When two sources have different defaultLayers and different layerOrders and one of the layers is called public.default, it is not possible to write to disk as public.default must be the default layer (see the UFO spec)

Some options:

came up in https://robofontcommunity.slack.com/archives/C03A6AYH6TE/p1667999235159179

typemytype commented 1 year ago

a quick fix as fontParts already does the 3th option: only interpolate layers with the same name (see)

dont set the font.defaultLayerName based on the layerOrder, but check first if "public.default" is available as layer name