arrowtype / fonttools-intro

An introduction to FontTools & font development
MIT License
84 stars 3 forks source link

How to move paths from glyph to glyph #4

Open Yiddishe-Kop opened 3 years ago

Yiddishe-Kop commented 3 years ago

Hi @arrowtype, thanks so much for the intro & sample code, it really helps a lot!

I'm also trying to make a "trial font" but with a different strategy: mix up glyph drawings, then resubstitute them with an OpenType feature (e.g. a stylistic set).

I'm trying to use fonttools to flip around the a & z glyph paths.

I have managed to convert the font to a Python object with ttLib.TTFont, but am struggling how to access and modify the glyph vector data.

Many thanks!

arrowtype commented 10 months ago

Hey, so sorry I missed this issue for literally years!

Did you ever figure it out?

I think you could swap just the references in the glyf table, maybe... that is just an initial guess, though.