better text scaling support

This commit is contained in:
minjaesong
2024-04-28 22:25:00 +09:00
parent 2196a4b2e7
commit 87492c1f0b
2 changed files with 4 additions and 4 deletions

View File

@@ -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
}
}