Skip to content

Instantly share code, notes, and snippets.

@arrowtype
Created April 11, 2021 21:41
Show Gist options
  • Save arrowtype/b627f2674d608b2b3de9f7ef004f871f to your computer and use it in GitHub Desktop.
Save arrowtype/b627f2674d608b2b3de9f7ef004f871f to your computer and use it in GitHub Desktop.
A RoboFont script to print all characters in a font that have a unicode value.
"""
A RoboFont script to print all characters in a font that have a unicode value.
"""
f = CurrentFont()
unicodes = []
for name in f.keys():
if f[name].unicodes != () and f[name].width != 0:
unicodes.append(f[name].unicodes[0])
for u in sorted(unicodes):
print(chr(u), end=" ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment