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 = f.selection[0] | |
| for i in f: | |
| for j in i.components: | |
| if j.baseGlyph == g: | |
| i.mark = 1 | |
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() | |
| def flat_list(*n): | |
| stringer = '' | |
| if len(n) == 1: | |
| stringer += str(n[0]) | |
| return stringer | |
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() | |
| f['BASE'].appendAnchor('dTop',(311,591)) | |
| f['BASE'].appendAnchor('dCand',(311,631)) | |
| f['BASE'].appendAnchor('dBottom',(311,-20)) | |
| f['BASE'].appendAnchor('dNukta',(0,100)) | |
| f.update() | |
| print 'done' |
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) |
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.selection: | |
| if f[i].box[0] < 40: | |
| f[i].mark = 10 | |
| if f[i].box[0] > 960 : | |
| f[i].mark[2] = 10 |
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.selection: | |
| if f[i].width == 1000: | |
| f[i].mark = 10 | |
| f.update() |
NewerOlder