more fair penaltying

This commit is contained in:
minjaesong
2024-05-03 03:08:51 +09:00
parent 74695f519b
commit c2b491cc8d
2 changed files with 67 additions and 36 deletions

View File

@@ -759,6 +759,10 @@ class TerrarumSansBitmap(
for (i in 0 until 256) {
glyphProps[0xF800 + i] = GlyphProps(0)
}
for (i in 0xFFF70..0xFFF9F) {
glyphProps[i] = GlyphProps(0)
}
}
fun getWidth(text: String) = getWidthNormalised(text.toCodePoints())