googlefonts / flatfont

Flatbuffer equivalent to UFO, safe to transform to/from
Apache License 2.0
5 stars 3 forks source link

Add python serializer (ufo2flatfont) #5

Open hamidhma opened 2 years ago

hamidhma commented 2 years ago

So I generated python classes for UFOFontInfo by executing "flatc -p", Then I wrote a code that reads a UFO and serializes it to a Flatfont (For now, just FontInfo). Here in the python code ufoff.py, the main concern was skipping the process of calling all setter methods one by one.

google-cla[bot] commented 2 years ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

For more information, open the CLA check for this pull request.

anthrotype commented 2 years ago

but don't run the autoformatter on the python sources that are generated by flatbuffer itself, of course. there's no point reformatting autogenerated code