mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-06-17 02:44:05 +09:00
typesetter: extra draw call by line number
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user