Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jenskutilek/mastergrid
Per-master grids for Glyphs.app
https://github.com/jenskutilek/mastergrid
glyphs glyphsapp glyphsapp-plugins glyphsapp-scripts
Last synced: about 1 month ago
JSON representation
Per-master grids for Glyphs.app
- Host: GitHub
- URL: https://github.com/jenskutilek/mastergrid
- Owner: jenskutilek
- License: apache-2.0
- Created: 2017-12-04T12:09:18.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-03T10:38:16.000Z (8 months ago)
- Last Synced: 2024-05-03T21:16:34.422Z (8 months ago)
- Topics: glyphs, glyphsapp, glyphsapp-plugins, glyphsapp-scripts
- Language: Python
- Size: 142 KB
- Stars: 3
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# MasterGrid
Per-master grids for Glyphs.appMasterGrid 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:
```python
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:```python
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:
```python
Glyphs.defaults["de.kutilek.MasterGrid.color"] = (1, 0, 0, 0.2)
```