typesetter: extra draw call by line number

This commit is contained in:
minjaesong
2024-04-04 02:45:24 +09:00
parent 32c859fdf8
commit 30327776ba
4 changed files with 38 additions and 7 deletions

View File

@@ -305,7 +305,7 @@ class TerrarumSansBitmap(
glyphProps[0] = GlyphProps(0)
}
override fun getLineHeight(): Float = 24f * scale
override fun getLineHeight(): Float = LINE_HEIGHT.toFloat() * scale
override fun getXHeight() = 8f * scale
override fun getCapHeight() = 12f * scale
override fun getAscent() = 3f * scale
@@ -2040,6 +2040,8 @@ class TerrarumSansBitmap(
companion object {
const val LINE_HEIGHT = 24
fun CodepointSequence.getHash(): Long {
val hashBasis = -3750763034362895579L
val hashPrime = 1099511628211L