summaryrefslogtreecommitdiff
path: root/scripts/lib/fontbuild/Build.py
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk@google.com>2015-11-24 15:03:18 -0800
committerJames Godfrey-Kittle <jamesgk@google.com>2015-11-24 15:03:18 -0800
commit7d38014a38dae2303960adac770cd1399f7af032 (patch)
tree50af9f06dc90572fdbc7d37af17aba7abadb9484 /scripts/lib/fontbuild/Build.py
parent5b0dcd91995fe60d235bde7c7bb6bdbf0b910e81 (diff)
Another update to curve conversion calls
cu2qu is a new library without a currently well-defined API, so these calls have changed and will probably change again.
Diffstat (limited to 'scripts/lib/fontbuild/Build.py')
-rw-r--r--scripts/lib/fontbuild/Build.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/lib/fontbuild/Build.py b/scripts/lib/fontbuild/Build.py
index 5bb0ed6..be0b79c 100644
--- a/scripts/lib/fontbuild/Build.py
+++ b/scripts/lib/fontbuild/Build.py
@@ -180,14 +180,14 @@ class FontProject:
self.generatedFonts = []
log(">> Converting curves to quadratic")
- # using a slightly higher max error (e.g. 0.0025), dots will have fewer
- # control points and look noticeably different
+ # using a slightly higher max error (e.g. 0.0025 em), dots will have
+ # fewer control points and look noticeably different
max_err = 0.002
if self.compatible:
- fonts_to_quadratic(*fonts, max_err=max_err, dump_report=True)
+ fonts_to_quadratic(*fonts, max_err_em=max_err, dump_report=True)
else:
for font in fonts:
- fonts_to_quadratic(font, max_err=max_err, dump_report=True)
+ fonts_to_quadratic(font, max_err_em=max_err, dump_report=True)
log(">> Generating TTF files")
for font in fonts: