X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=scripts%2Fmakefont.py;h=11d83794205cebad76b5526e088aa16d0d022df5;hp=84e9c6099dedcf5c0d18e2a02c068f110d4cc813;hb=355e3a068ea4ad6a7d3ab9318b3ce74b7f0b0b15;hpb=ee31badbd85f64eaca16c3a2e9db217465992a69 diff --git a/scripts/makefont.py b/scripts/makefont.py index 84e9c609..11d83794 100755 --- a/scripts/makefont.py +++ b/scripts/makefont.py @@ -23,6 +23,9 @@ def convert_def(fn): result += "\toffset %.3f %.3f;\n"%(float(ox)/fh, float(oy)/fh) result += "\tadvance %.3f;\n"%(float(a)/fh) result += "};\n" + elif parts[0]=="kern": + l, r, d = map(int, parts[1:]) + result += "kerning %d %d %.3f;\n"%(l, r, float(d)/fh) return result