removing old hacks

This commit is contained in:
Song Minjae
2017-03-23 21:15:40 +09:00
parent 0e7e6ab934
commit ddf2e28901
2 changed files with 10 additions and 12 deletions

View File

@@ -132,15 +132,14 @@ open class GameFontBase : Font {
val chr = s[i]
val ctype = getSheetType(s[i])
if (chr.toInt() == 0x21B) // Romanian t; HAX!
len += 6
else if (variableWidthSheets.contains(ctype)) {
try {
len += asciiWidths[chr.toInt()]!!
if (variableWidthSheets.contains(ctype)) {
len += try {
asciiWidths[chr.toInt()]!!
}
catch (e: kotlin.KotlinNullPointerException) {
println("KotlinNullPointerException on glyph number ${Integer.toHexString(chr.toInt()).toUpperCase()}")
System.exit(1)
//System.exit(1)
W_LATIN_WIDE // failsafe
}
}
else if (zeroWidthSheets.contains(ctype))

View File

@@ -132,15 +132,14 @@ open class GameFontBase : Font {
val chr = s[i]
val ctype = getSheetType(s[i])
if (chr.toInt() == 0x21B) // Romanian t; HAX!
len += 6
else if (variableWidthSheets.contains(ctype)) {
try {
len += asciiWidths[chr.toInt()]!!
if (variableWidthSheets.contains(ctype)) {
len += try {
asciiWidths[chr.toInt()]!!
}
catch (e: kotlin.KotlinNullPointerException) {
println("KotlinNullPointerException on glyph number ${Integer.toHexString(chr.toInt()).toUpperCase()}")
System.exit(1)
//System.exit(1)
W_LATIN_WIDE // failsafe
}
}
else if (zeroWidthSheets.contains(ctype))