From b7a48e728ebaadecc2f195a0f5c01ff8383af3b4 Mon Sep 17 00:00:00 2001 From: Jeff Kellem Date: Wed, 13 Feb 2019 11:06:22 -0800 Subject: [PATCH] cutOut anchors defined from origin in SMuFL v1.3, so no special case needed anymore --- scripts/fontlab/generate_font_metadata.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/fontlab/generate_font_metadata.py b/scripts/fontlab/generate_font_metadata.py index 432c8de..e8645e2 100644 --- a/scripts/fontlab/generate_font_metadata.py +++ b/scripts/fontlab/generate_font_metadata.py @@ -97,14 +97,8 @@ def format_codepoint(val): if len(g.anchors) > 0: font_metadata['glyphsWithAnchors'][g.note] = {} for anchor in g.anchors: - - if anchor.name.startswith('cutOut'): - fontlab_metadata['glyphsWithAnchors'][g.note][anchor.name] = \ - [to_cartesian(anchor.x - bounding_box.ll.x), - to_cartesian(anchor.y - bounding_box.ll.y)] - else: - fontlab_metadata['glyphsWithAnchors'][g.note][anchor.name] = \ - [to_cartesian(anchor.x), to_cartesian(anchor.y)] + fontlab_metadata['glyphsWithAnchors'][g.note][anchor.name] = \ + [to_cartesian(anchor.x), to_cartesian(anchor.y)] if int(g.unicode) >= 0xF400: font_metadata["optionalGlyphs"][g.note] = {'classes': []}