InfoBot0.6.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:InfoBot-for-Glyphs 作者: schriftgestalt 项目源码 文件源码
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))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号