Skip to content

Instantly share code, notes, and snippets.

@madig
Created July 12, 2022 17:35
Show Gist options
  • Save madig/b226c5feff330f64691ed71085c1e0d5 to your computer and use it in GitHub Desktop.
Save madig/b226c5feff330f64691ed71085c1e0d5 to your computer and use it in GitHub Desktop.
Embed glyph metadata in source file
# MenuTitle: Embed Glyph Metadata in Current Font
"""Embeds production name, category and sub category into each glyph of the
current font."""
for glyph in Glyphs.font.glyphs:
glyph.storeProductionName = True
glyph.storeSubCategory = True
glyph.storeCategory = True
@madig
Copy link
Author

madig commented Jul 14, 2022

Mh, likely not, because we are working around the fact that glyphsLib behavior does not match Glyphs.app behavior (exhibit A: googlefonts/glyphsLib#756). Glyphs.app itself does not need this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment