thai text linebreaking fix

This commit is contained in:
minjaesong
2024-03-31 00:02:19 +09:00
parent 78333b3fe1
commit 46a57e8e50
6 changed files with 168 additions and 99 deletions

View File

@@ -2071,8 +2071,10 @@ class TerrarumSansBitmap(
get() = glyphLayout!!.width
val texture: Texture
get() = glyphLayout!!.linotype
val penultimateChar: CodePoint
get() = text[text.size - 2]
// val penultimateChar: CodePoint
// get() = text[text.size - 2]
val penultimateCharOrNull: CodePoint?
get() = text.getOrNull(text.size - 2)
fun dispose() {
glyphLayout?.linotype?.dispose()