X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=scripts%2Fmakefont.py;h=d24732ee33ea0d5bd05fd2a417c254a182fa5506;hb=97b8f0d945474582c2213b70418d399e5641f0d5;hp=1d7a4332906a55e02dc0df2f8009648b4ee6408b;hpb=31db7e468e628aba0f15956630a0ab1f019e9ea9;p=libs%2Fgl.git 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