summaryrefslogtreecommitdiff
path: root/scripts/lib/fontbuild/Build.py
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk@google.com>2015-11-20 17:24:29 -0800
committerJames Godfrey-Kittle <jamesgk@google.com>2015-11-23 11:42:54 -0800
commit09eb72c1feecd1c997c8cccc47532440717e4a5f (patch)
tree39865a977ba4e9caee0af47da5ae637cdf823954 /scripts/lib/fontbuild/Build.py
parentd1d422cd292addb4b59e85e2af1971635f1d923c (diff)
Change error bound when converting curves
This is a small change which passes the threshold at which dots will have eight points instead of four, which makes a noticeable difference in shape.
Diffstat (limited to 'scripts/lib/fontbuild/Build.py')
-rw-r--r--scripts/lib/fontbuild/Build.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/lib/fontbuild/Build.py b/scripts/lib/fontbuild/Build.py
index a8451f0..041a7ec 100644
--- a/scripts/lib/fontbuild/Build.py
+++ b/scripts/lib/fontbuild/Build.py
@@ -180,11 +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
+ max_err = 0.002
if self.compatible:
- fonts_to_quadratic(*fonts, dump_report=True)
+ fonts_to_quadratic(*fonts, max_err=max_err, dump_report=True)
else:
for font in fonts:
- fonts_to_quadratic(font, dump_report=True)
+ fonts_to_quadratic(font, max_err=max_err, dump_report=True)
log(">> Generating TTF files")
for font in fonts: