def drawInfo(): #Font Name, Designer and Glyphname on every page
font("System Font Bold")
fontSize(10)
text(current_font.familyName + " " + "by" + " " + str(current_font.designer), (0, 0))
glyph_name = current_glyph.name #new variable because to avoid conflict and confusion
font("System Font Light")
translate(0, - 12)
uni_glyph = current_glyph.string
print current_glyph.string
try:
text(unicodedata.name(uni_glyph), (0, 0))
except:
print 'No Name'
translate(0, - 12)
text(glyph_name, (0, 0))
translate(0, - 12)
text('0x' + current_font.glyphs['A'].unicode, (0, 0))
评论列表
文章目录