From d5549ecccb8293a70782b164bb278ddc6f365a04 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 25 Apr 2018 14:58:39 +0300 Subject: [PATCH] Sort the cap_height and x_height arrays in makefont.py I'm pretty sure they were intended to be sorted given that the item at the two-thirds position is selected. --- scripts/makefont.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/makefont.py b/scripts/makefont.py index 1d7a4332..d24732ee 100755 --- a/scripts/makefont.py +++ b/scripts/makefont.py @@ -40,8 +40,10 @@ def convert_def(fn): result += "kerning %d %d %.3f;\n"%(l, r, float(d)/fh) if cap_height: + cap_height.sort() header += "cap_height %.3f;\n"%(float(cap_height[len(cap_height)*2/3])/fh) if x_height: + x_height.sort() header += "x_height %.3f;\n"%(float(x_height[len(x_height)*2/3])/fh) return header+result -- 2.45.2