Currently when I have designspace or axis mapping issues, fontmake dies like this:
fontmake: Error: In 'sources/sources-glyphs/Literata-Upright.glyphs' -> 'master_ufo/Literata.designspace':
Generating fonts from Designspace failed: No default source
This is normally followed by swearing and grovelling through .designspace XML files, which is not a pleasant experience. With this PR, fontmake dies like this:
fontmake: Error: In 'sources/sources-glyphs/Literata-Upright.glyphs' -> 'master_ufo/Literata.designspace':
Generating fonts from Designspace failed: No default source; expected default master at Weight=631.111,
Optical size=10. Found master locations:
Literata 12 pt Regular at Weight=400, Optical size=10
Literata 7pt Regular at Weight=400, Optical size=6
Literata 72pt Regular at Weight=400, Optical size=144
Literata M3 at Weight=200, Optical size=10
Literata M4 at Weight=900, Optical size=10
Literata 72pt ExtraLight at Weight=200, Optical size=144
Literata 72pt Black at Weight=900, Optical size=144
Literata M7 at Weight=900, Optical size=6
Which at least tells me immediately that there's something gone wrong with the weight axis map, and saves me looking up all the source locations.
Currently when I have designspace or axis mapping issues, fontmake dies like this:
This is normally followed by swearing and grovelling through
.designspace
XML files, which is not a pleasant experience. With this PR, fontmake dies like this:Which at least tells me immediately that there's something gone wrong with the weight axis map, and saves me looking up all the source locations.