Chinese/Japanese typesetting works in a way that it won't crash the program

This commit is contained in:
minjaesong
2024-03-25 16:01:32 +09:00
parent e81b9f4e53
commit b9e0366512
3 changed files with 83 additions and 43 deletions

View File

@@ -2199,7 +2199,7 @@ class TerrarumSansBitmap(
"sundanese_variable.tga",
"devanagari_internal_extrawide_variable.tga",
)
private val codeRange = arrayOf( // MUST BE MATCHING WITH SHEET INDICES!!
internal val codeRange = arrayOf( // MUST BE MATCHING WITH SHEET INDICES!!
0..0xFF, // SHEET_ASCII_VARW
(0x1100..0x11FF) + (0xA960..0xA97F) + (0xD7B0..0xD7FF), // SHEET_HANGUL, because Hangul Syllables are disassembled prior to the render
0x100..0x17F, // SHEET_EXTA_VARW