Skip to content

Instantly share code, notes, and snippets.

@marcdama
Last active August 29, 2015 14:19
Show Gist options
  • Select an option

  • Save marcdama/3d5d771defbcabc75c8e to your computer and use it in GitHub Desktop.

Select an option

Save marcdama/3d5d771defbcabc75c8e to your computer and use it in GitHub Desktop.
Devanagari add dBottom to glyphs which do not have this anchor
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()
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