Created
August 9, 2018 19:20
-
-
Save frankrolf/9d2c8bda82cc6fc29c773c6a6f5a06f1 to your computer and use it in GitHub Desktop.
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
# coding: utf-8 | |
import pprint | |
from fontTools import agl | |
characters = u'Loïc Sander Nick Sherman Tânia Raposo Frank Grießhammer' | |
for char in characters: | |
# ord(char) is the decimal Unicode value for a given character | |
# agl.UV2AGL is a dictionary that maps those Unicode values to glyph names | |
print(agl.UV2AGL.get(ord(char))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment