From 63c97fc065960d79b544b13ed3801a008cc7c50c Mon Sep 17 00:00:00 2001 From: James Godfrey-Kittle Date: Thu, 9 Apr 2015 10:11:20 -0700 Subject: Revise updated scripts to run without FontLab. --- scripts/lib/fontbuild/generateGlyph.py | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'scripts/lib/fontbuild/generateGlyph.py') 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={}): -- cgit v1.2.3