diff options
author | James Godfrey-Kittle <jamesgk@google.com> | 2015-04-09 10:11:20 -0700 |
---|---|---|
committer | James Godfrey-Kittle <jamesgk@google.com> | 2015-04-16 12:16:34 -0700 |
commit | 63c97fc065960d79b544b13ed3801a008cc7c50c (patch) | |
tree | b3df73153c12f31e28e082471513971ae4873ceb /scripts/lib/fontbuild/generateGlyph.py | |
parent | 56ad4064e8eeff6c320952daef8767188ae7fa63 (diff) |
Revise updated scripts to run without FontLab.
Diffstat (limited to 'scripts/lib/fontbuild/generateGlyph.py')
-rw-r--r-- | scripts/lib/fontbuild/generateGlyph.py | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/scripts/lib/fontbuild/generateGlyph.py b/scripts/lib/fontbuild/generateGlyph.py index 4702631..d7663b9 100644 --- a/scripts/lib/fontbuild/generateGlyph.py +++ b/scripts/lib/fontbuild/generateGlyph.py @@ -20,17 +20,11 @@ def copyMarkAnchors(f, g, srcname, width): anchors = f[srcname].anchors for anchor in anchors: if "top_dd" == anchor.name: - anchor1 = Anchor(anchor) - anchor1.x += width - g.anchors.append(anchor1) + g.appendAnchor(anchor.name, (anchor.x + width, anchor.y)) if "bottom_dd" == anchor.name: - anchor1 = Anchor(anchor) - anchor1.x += width - g.anchors.append(anchor1) + g.appendAnchor(anchor.name, (anchor.x + width, anchor.y)) if "top0315" == anchor.name: - anchor1 = Anchor(anchor) - anchor1.x += width - g.anchors.append(anchor1) + g.appendAnchor(anchor.name, (anchor.x + width, anchor.y)) if "top" == anchor.name: if g.unicode == None: continue @@ -42,15 +36,10 @@ def copyMarkAnchors(f, g, srcname, width): parenttop_present = 1 if parenttop_present: continue - anchor1 = Anchor(anchor) - anchor1.name = "parent_top" -# anchor1.x += width - g.anchors.append(anchor1) + g.appendAnchor("parent_top", anchor.position) # if "rhotichook" == anchor.name: - # anchor1 = Anchor(anchor) - # anchor1.x += width - # g.anchors.append(anchor1) + # g.appendAnchor(anchor.name, (anchor.x + width, anchor.y)) def generateGlyph(f,gname,glyphList={}): |