gftools icon indicating copy to clipboard operation
gftools copied to clipboard

[Builder] can't build non-interpolable statics fonts while fontmake does

Open emmamarichal opened this issue 4 years ago • 2 comments

I have this error when I want to build a font (has 3 masters, but is not variable) with gftools builder, but I tried to export it with only Fontmake and then it worked.

raise FontmakeError(fontmake.errors.FontmakeError: In 'CrimsonText.glyphs' -> 'master_ufo/CrimsonText.designspace': Interpolating instance 'SemiBold' failed.: Failed to generate instance of glyph 'brevecomb_hookabovecomb.case': list index out of range. (Note: the most common cause for an error here is that the glyph outlines are not point-for-point compatible or have the same starting point or are in the same order in all masters.)

Source file + config.yaml: CrimsonText.zip

emmamarichal avatar Jan 28 '22 14:01 emmamarichal

I just hit the same thing. The problem is we pass the interpolate flag to fontmake whether we need it or not. We should make that a config option.

simoncozens avatar Jan 28 '22 14:01 simoncozens

The font is now exporting without the variable font, so this issue is partly fixed. We are having the case where a glyphs is empty in one of the master, then the builder tries to interpolate it and fail. Ideally, we should be able to build static fonts with incompatible masters, missing glyphs etc while the design is still WIP.

RosaWagner avatar Feb 18 '22 10:02 RosaWagner

@simoncozens, well said here:

We should make that a config option.

It would really help to have a dedicated option for this so as to be able to control externally, which is proposed in #657.

IvanUkhov avatar Feb 21 '23 14:02 IvanUkhov