texts now printed 2px lower so that the text is vertically centred against the lineheight

This commit is contained in:
minjaesong
2023-06-06 18:07:14 +09:00
parent 189a427edc
commit 2f6126d0ea

View File

@@ -339,7 +339,7 @@ class TerrarumSansBitmap(
// always draw at integer position; this is bitmap font after all
val x = Math.round(x)
val y = Math.round(y)
val y = Math.round(y + (lineHeight - 20 * scale) / 2)
val charSeqHash = newCodepoints.getHash()