Created
April 11, 2021 21:41
-
-
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.
This file contains 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
""" | |
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