use font metric to better display help page (to exted to other pages in future)
This commit is contained in:
1 parent
81f99e4921
commit
ce30d9c652
4 files changed
+25
-22
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user