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

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

No files matched your search

+1 -1
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)