Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/gh-pages' into gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Spreadbury committed Mar 5, 2019
2 parents 1d850bf + 20c3a2c commit 7b4968e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions scripts/fontlab/generate_font_metadata.py
Expand Up @@ -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': []}
Expand Down

0 comments on commit 7b4968e

Please sign in to comment.