Created
December 6, 2017 11:01
-
-
Save typemytype/f9a507bfc2e80aa89925dde963e24c94 to your computer and use it in GitHub Desktop.
show all installed fonts for a given string
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
| characters = u"345678" | |
| format = "A4" | |
| margin = 10 | |
| t = FormattedString() | |
| for fontName in installedFonts(characters): | |
| t.font(fontName) | |
| t += characters | |
| while t: | |
| newPage(format) | |
| t = textBox(t, (margin, margin, width()-margin*2, height()-margin*2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment