googlefonts / sfntly

A Library for Using, Editing, and Creating SFNT-based Fonts
451 stars 162 forks source link

edit glyf data #82

Open TGISer opened 7 years ago

TGISer commented 7 years ago

Can I use this to edit glyf data , if it can do it where can I find the sample code? Thank you for your help!

rillig commented 7 years ago

No, not really.

You could start at the GlyphTable. With the help of the LocaTable you can access the individual glyphs. They are either SimpleGlyph or CompositeGlyph. The simple glyph has an inner class called Contour, but that is not implemented.

The assembly instructions are also not implemented. The only thing you can do with them is a hex dump.