Last active
August 29, 2015 14:19
-
-
Save marcdama/3d5d771defbcabc75c8e to your computer and use it in GitHub Desktop.
Devanagari add dBottom to glyphs which do not have this anchor
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() | |
| g_anc = {} | |
| for i in f.selection: | |
| g_anc[f[i].name] = [] | |
| for j in f[i].anchors: | |
| g_anc[f[i].name].append(j.name) | |
| for i in g_anc: | |
| if not 'dBottom' in g_anc[i]: | |
| if not len(f[i].anchors) == 0: | |
| f[i].appendAnchor('dBottom', (f[i].width /2, f[i].box[1] -20)) | |
| f[i].mark = 10 | |
| f.update() |
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
| glyphs will be coloured red, once done. You will have to manually adjust the positioning. | |
| **2015-04-17 updated** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment