Custom Parameter | Objects | Type |
---|---|---|
ascender | master | unicode |
Autohint | instance | int |
Axes | font | list |
Axis Location | master | list |
blueScale | font | float |
blueShift | font | int |
capHeight | master | unicode |
CJK Grid | master | int |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
.appVersion = "1073"; | |
customParameters = ( | |
{ | |
name = glyphOrder; | |
value = "New Value"; | |
}, | |
{ | |
name = "Family Alignment Zones"; | |
value = New Value; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
.appVersion = "1073"; | |
customParameters = ( | |
{ | |
name = glyphOrder; | |
value = ( | |
"New Value" | |
); | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Requires pyicu, fontTools | |
Authors: | |
Denis Moyogo Jacquerye [https://github.com/moyogo] | |
MIT License [https://opensource.org/licenses/MIT] | |
''' | |
import sys | |
import icu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate a file with "oldname=newname" per glyph to rename with nice names. | |
# To use with https://github.com/mekkablue/Glyphs-Scripts to rename glyphs | |
for font in Glyphs.fonts: | |
renames = dict() | |
for glyph in font.glyphs: | |
new = Glyphs.niceGlyphName(glyph.name) | |
if new != glyph.name and new not in font.glyphs: | |
renames[glyph.name] = new | |
print(len(renames)) | |
dirname = "/".join(font.filepath.split("/")[:-1]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glyphsets | |
from gflanguages import LoadLanguages | |
from fontTools import unicodedata | |
def get_decomposed_chars(glyphset_name, langs=None): | |
if langs is None: | |
langs = LoadLanguages() | |
allchars = set() | |
for lang_code in glyphsets.languages_per_glyphset(glyphset_name): |