mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-06-06 05:58:30 +09:00
more bug fixes
This commit is contained in:
@@ -49,7 +49,7 @@ class MovableType(
|
|||||||
// println("Paper width: $paperWidth")
|
// println("Paper width: $paperWidth")
|
||||||
|
|
||||||
val lines = inputText.tokenise()
|
val lines = inputText.tokenise()
|
||||||
lines.debugprint()
|
// lines.debugprint()
|
||||||
|
|
||||||
lines.forEachIndexed { linenum, it ->
|
lines.forEachIndexed { linenum, it ->
|
||||||
// println("Processing input text line ${linenum + 1} (word count: ${it.size})...")
|
// println("Processing input text line ${linenum + 1} (word count: ${it.size})...")
|
||||||
@@ -653,7 +653,7 @@ class MovableType(
|
|||||||
proceedToNextLine()
|
proceedToNextLine()
|
||||||
|
|
||||||
lines.forEach {
|
lines.forEach {
|
||||||
if ((it[0].size == 2 && it[0][0] == 0 && it[0][1] == 0) || it[0].isZeroGlue())
|
if (it.isNotEmpty() && ((it[0].size == 2 && it[0][0] == 0 && it[0][1] == 0) || it[0].isZeroGlue()))
|
||||||
it.removeAt(0)
|
it.removeAt(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2532,7 +2532,7 @@ class TerrarumSansBitmap(
|
|||||||
private fun isBulgarian(c: CodePoint) = c in 0xF0000..0xF005F
|
private fun isBulgarian(c: CodePoint) = c in 0xF0000..0xF005F
|
||||||
private fun isSerbian(c: CodePoint) = c in 0xF0060..0xF00BF
|
private fun isSerbian(c: CodePoint) = c in 0xF0060..0xF00BF
|
||||||
fun isColourCode(c: CodePoint) = c == 0x100000 || c in 0x10F000..0x10FFFF
|
fun isColourCode(c: CodePoint) = c == 0x100000 || c in 0x10F000..0x10FFFF
|
||||||
private fun isCharsetOverride(c: CodePoint) = c in 0xFFFC0..0xFFFFF
|
private fun isCharsetOverride(c: CodePoint) = c in 0xFFFC0..0xFFFDF
|
||||||
private fun isDevanagari(c: CodePoint) = c in codeRange[SHEET_DEVANAGARI_VARW]
|
private fun isDevanagari(c: CodePoint) = c in codeRange[SHEET_DEVANAGARI_VARW]
|
||||||
private fun isHangulCompat(c: CodePoint) = c in codeRangeHangulCompat
|
private fun isHangulCompat(c: CodePoint) = c in codeRangeHangulCompat
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user