line=src.readline()
tw,th,fh,fa,fd=map(int, line.split())
- result="default_size %d;\n"%fh
+ result="native_size %d;\n"%fh
result+="ascent %.3f;\n"%(float(fa)/fh)
result+="descent %.3f;\n"%(float(fd)/fh)
if os.system("ttf2png \"%s\" -o makefont-tmp.png -d makefont-tmp.def -t -p -s %d"%(fn, size)):
raise Exception("Could not execute ttf2png")
- result="texture_inline\n{\n"
+ result="texture\n{\n"
result+=maketex.make_tex("makefont-tmp.png")
result+="};\n"
result+=convert_def("makefont-tmp.def")