-
-
Save weiweihuanghuang/a62aeb268ad1a0b811bf to your computer and use it in GitHub Desktop.
Import Testing
This file contains 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
# -*- coding: utf-8 -*- | |
# The function that creates the kerning text, define your own texts | |
def subCat(eachGlyph, subCat): | |
if Glyphs.glyphInfoForName( eachGlyph ).subCategory == subCat: | |
return True | |
else: | |
return False | |
def kernMakerB(kernPair): | |
myGlyphs = kernPair.split('/') | |
# Remove blank items in myGlyphs | |
myGlyphs = filter(None, myGlyphs) | |
# print myGlyphs | |
# UC UC | |
if all(subCat(eachGlyph, "Uppercase") for eachGlyph in myGlyphs): | |
print "it works" |
This file contains 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
#MenuTitle: Testing Script | |
# -*- coding: utf-8 -*- | |
__doc__=""" | |
""" | |
import GlyphsApp | |
import kernMakerFuncB | |
reload(kernMakerFuncB) | |
from kernMakerFuncB import kernMakerB | |
kernMakerB("/A/B") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment