From: Mikko Rasa Date: Wed, 25 Apr 2018 11:58:39 +0000 (+0300) Subject: Sort the cap_height and x_height arrays in makefont.py X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=d5549ecccb8293a70782b164bb278ddc6f365a04;p=libs%2Fgl.git 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. --- 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