googlefonts / glyphsLib

A bridge from Glyphs source files (.glyphs) to UFOs
Apache License 2.0
178 stars 51 forks source link

Converting features from .ufo to .glyphs should allow invalid code #1005

Open schriftgestalt opened 1 month ago

schriftgestalt commented 1 month ago

I’m trying to roundtrip a .glyphs file that happens to have outdated classes with some glyphs that are not in the font.

in def _to_glyphs_features() (in features.py), > FeaDocument() > self._doc = parser_.parse() > featureLib.parser.Parser.parse() it checks for missing glyphs. But all we want is to segment the .fea file into individual feature blocks. The code should not required to be valid.

khaledhosny commented 1 month ago

Possibly related to https://github.com/fonttools/fonttools/issues/3501.