mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-03-07 11:51:50 +09:00
texts now printed 2px lower so that the text is vertically centred against the lineheight
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user