diff options
author | Karl Berry <karl@freefriends.org> | 2012-05-31 23:15:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-05-31 23:15:34 +0000 |
commit | 428059a93489887cfc01e6d71b45e1426e286ec0 (patch) | |
tree | 150661e8f7ef4c9e61e659d9836f6f91b31c1c5f /Master/texmf-dist/doc/fonts/amiri/tools/build.py | |
parent | 69bf610e3d20ef35e05a6ceae295e855c2bf2593 (diff) |
amiri 0.103 (31may12)
git-svn-id: svn://tug.org/texlive/trunk@26750 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/fonts/amiri/tools/build.py')
-rwxr-xr-x | Master/texmf-dist/doc/fonts/amiri/tools/build.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/fonts/amiri/tools/build.py b/Master/texmf-dist/doc/fonts/amiri/tools/build.py index 77ca98604e9..72e9993d768 100755 --- a/Master/texmf-dist/doc/fonts/amiri/tools/build.py +++ b/Master/texmf-dist/doc/fonts/amiri/tools/build.py @@ -314,6 +314,11 @@ def mergeLatin(font, italic=False): latinfont = fontforge.open("sources/crimson/sources/%s" %latinfile) latinfont.em = 2048 + # convert to quadratic splines then simplify + latinfont.is_quadratic = True + for glyph in latinfont.glyphs(): + glyph.simplify() + validateGlyphs(latinfont) # to flatten nested refs mainly # collect latin glyphs we want to keep @@ -419,9 +424,10 @@ def mergeLatin(font, italic=False): latinfont.selection.select(name) latinfont.paste() - rtl = latinfont.createChar(-1, name + ".rtl") - rtl.addReference(name, italic) - rtl.useRefsMetrics(name) + if not name + ".ara" in font: + rtl = latinfont.createChar(-1, name + ".rtl") + rtl.addReference(name, italic) + rtl.useRefsMetrics(name) # copy kerning classes kern_lookups = {} |