use font metric to better display help page (to exted to other pages in future)

This commit is contained in:
traycold
2012-03-20 23:28:49 +01:00
parent 81f99e4921
commit ce30d9c652
4 changed files with 25 additions and 22 deletions

View File

@@ -18,7 +18,7 @@ end
width, height = fb:getSize()
fb.bb:paintRect(5,5,width-5,height-5,4);
faceHeight, faceAscender = face:getHeight();
faceHeight, faceAscender = face:getHeightAndAscender();
print("face height:"..tostring(faceHeight).." - ascender:"..faceAscender)
faceHeight = math.ceil(faceHeight)
faceAscender = math.ceil(faceAscender)