As stated in the Python scripting API documentation, I can access the “Grid Spacing” as GSFont.grid
and the “Subdivision” as GSFont.gridSubDivisions
. Also, GSFont.gridLength
returns the value GSFont.grid / GSFont.gridSubDivisions
. There is no problem:
In the .glyphs file, however, GSFont.grid
is stored as gridLength
instead of grid
:
$ grep grid test.glyphs
gridLength = 123;
gridSubDivision = 4;
I was confused about this when scripting with glyphsLib Is it intentional?