mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-06-13 17:24:03 +09:00
better text scaling support
This commit is contained in:
@@ -766,10 +766,10 @@ class TerrarumSansBitmap(
|
||||
val cacheObj = getCache(s.getHash())
|
||||
|
||||
if (cacheObj != null) {
|
||||
return cacheObj.glyphLayout!!.width
|
||||
return cacheObj.glyphLayout!!.width * scale
|
||||
}
|
||||
else {
|
||||
return buildPosMap(s).width
|
||||
return buildPosMap(s).width * scale
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user