Skip to content

Instantly share code, notes, and snippets.

@weiweihuanghuang
Last active March 19, 2016 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weiweihuanghuang/a62aeb268ad1a0b811bf to your computer and use it in GitHub Desktop.
Save weiweihuanghuang/a62aeb268ad1a0b811bf to your computer and use it in GitHub Desktop.
Import Testing
# -*- 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"
#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