googlefonts / ufo2ft

A bridge from UFOs to FontTools objects (and therefore, OTFs and TTFs).
MIT License
152 stars 43 forks source link

[featureWriters] Support insert marker in the middle of a feature block #873

Closed khaledhosny closed 1 month ago

khaledhosny commented 1 month ago

Split the feature block into two and insert the generated code in the middle.

See https://github.com/googlefonts/ufo2ft/issues/351#issuecomment-765294436

khaledhosny commented 1 month ago

This does not handle lookupflag, scipt, or language that might be defined in the original feature block (they remain in the first half, while the new block does not get them). @schriftgestalt, what does Glyphs do in this case?