fonttools-intro icon indicating copy to clipboard operation
fonttools-intro copied to clipboard

How to move paths from glyph to glyph

Open Yiddishe-Kop opened this issue 4 years ago • 1 comments

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!

Yiddishe-Kop avatar Apr 27 '21 14:04 Yiddishe-Kop

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.

arrowtype avatar Nov 29 '23 01:11 arrowtype