Per-master grids for Glyphs.app
MasterGrid lets you set a grid that is not applied globally like the grid you can set in the font info, but per master.
Activate the grid display via the menu ‘View > Show Master Grid’. The grid is just a visual guide, it is not used for snapping.
Set or delete the grid for the current master via the menu ‘Edit > Master Grid…’ (you need to have the vanilla
module installed to be able to display the dialog).
If you don’t want to install vanilla
, you can still set the grid via the Macro Panel:
Font.masters[0].userData["de.kutilek.MasterGrid.value"] = [100, 100] # x, y
Font.masters[0].userData["de.kutilek.MasterGrid.type"] = "units" # absolute font units
You can also use relative subdivisions of the units per em value:
Font.masters[1].userData["de.kutilek.MasterGrid.value"] = [10, 10] # x, y
Font.masters[1].userData["de.kutilek.MasterGrid.type"] = "div" # subdivision of the em value
The resulting grid of the two examples will be the same for a font with 1000 units per em.
To customize the grid color, set it as an RGBA tuple by running this in the Macro Panel:
Glyphs.defaults["de.kutilek.MasterGrid.color"] = (1, 0, 0, 0.2)