better tokenising for mixed scripts (latin with numerals, korean with latin)

This commit is contained in:
minjaesong
2024-04-06 22:23:14 +09:00
parent 30327776ba
commit 373af27873
2 changed files with 40 additions and 9 deletions

View File

@@ -116,10 +116,10 @@ class FontTestGDX : Game() {
// draw position debuggers
// font.draw(batch, "soft\uFE0F\u00ADhyphen\uFE0F\u00ADated", 24f, 12f)
// batch.draw(testtex, 24f, 12f)
// val layoutDrawCall = { x: Float, y: Float, _: Int -> batch.draw(testtex, x, y) }
// layout.draw(batch, 24f, 12f, mapOf(0 to layoutDrawCall))
// end of draw position debuggers
val layoutDrawCall = { x: Float, y: Float, _: Int -> batch.draw(testtex, x, y) }
layout.draw(batch, 24f, 12f, mapOf(0 to layoutDrawCall))
layout.draw(batch, 24f, 12f)
batch.end()