Last active
August 29, 2015 14:19
-
-
Save marcdama/e3216238263150d6d4a9 to your computer and use it in GitHub Desktop.
FL: All Glyphs: replace outline with advanced width square
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
| from robofab.world import * | |
| f=CurrentFont() | |
| for i in f: | |
| g = i.width | |
| h = f.insertGlyph(i).getPen() | |
| h.moveTo((0,0)) | |
| h.lineTo((g,0)) | |
| h.lineTo((g, 750)) | |
| h.lineTo((0, 750)) | |
| h.closePath() | |
| f.update() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment