tokeniser: japanese small kana coalesced

This commit is contained in:
minjaesong
2024-03-30 01:28:46 +09:00
parent 9e85cae502
commit c9474fac1c
2 changed files with 147 additions and 41 deletions

View File

@@ -2068,6 +2068,13 @@ class TerrarumSansBitmap(
data class ShittyGlyphLayout(val textBuffer: CodepointSequence, val linotype: Texture, val width: Int)
data class TextCacheObj(val hash: Long, val glyphLayout: ShittyGlyphLayout?): Comparable<TextCacheObj> {
val text: CodepointSequence
get() = glyphLayout!!.textBuffer
val width: Int
get() = glyphLayout!!.width
val texture: Texture
get() = glyphLayout!!.linotype
fun dispose() {
glyphLayout?.linotype?.dispose()
}