Skip to content

Instantly share code, notes, and snippets.

@frankrolf
Created August 9, 2018 19:20
Show Gist options
  • Save frankrolf/9d2c8bda82cc6fc29c773c6a6f5a06f1 to your computer and use it in GitHub Desktop.
Save frankrolf/9d2c8bda82cc6fc29c773c6a6f5a06f1 to your computer and use it in GitHub Desktop.
# 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