From 687bc4009711baa09cdc9213b8e6ed2fe3a9065b Mon Sep 17 00:00:00 2001 From: minjaesong Date: Sun, 18 Jun 2017 17:40:14 +0900 Subject: [PATCH] fixed inverted shadow position on Han characters --- terrarumsansbitmap/gdx/GameFontBase.kt | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/terrarumsansbitmap/gdx/GameFontBase.kt b/terrarumsansbitmap/gdx/GameFontBase.kt index bc82f80..9b71d22 100644 --- a/terrarumsansbitmap/gdx/GameFontBase.kt +++ b/terrarumsansbitmap/gdx/GameFontBase.kt @@ -393,32 +393,32 @@ class GameFontBase(fontDir: String, val noShadow: Boolean = false, val flipY: Bo batch.draw( sheets[sheetID].get(sheetXY[0], sheetXY[1]), x + textBWidth[index] + 1 + offset, - y + - if (sheetID == SHEET_UNIHAN) // evil exceptions + y + (if (sheetID == SHEET_UNIHAN) // evil exceptions offsetUnihan else if (sheetID == SHEET_CUSTOM_SYM) offsetCustomSym - else 0 + else + 0) * if (flipY) 1 else -1 ) batch.draw( sheets[sheetID].get(sheetXY[0], sheetXY[1]), x + textBWidth[index] + offset, - y + if (flipY) 1 else -1 + - if (sheetID == SHEET_UNIHAN) // evil exceptions - offsetUnihan + y + (if (sheetID == SHEET_UNIHAN) // evil exceptions + offsetUnihan + 1 else if (sheetID == SHEET_CUSTOM_SYM) - offsetCustomSym - else 0 + offsetCustomSym + 1 + else + 1) * if (flipY) 1 else -1 ) batch.draw( sheets[sheetID].get(sheetXY[0], sheetXY[1]), x + textBWidth[index] + 1 + offset, - y + if (flipY) 1 else -1 + - if (sheetID == SHEET_UNIHAN) // evil exceptions - offsetUnihan + y + (if (sheetID == SHEET_UNIHAN) // evil exceptions + offsetUnihan + 1 else if (sheetID == SHEET_CUSTOM_SYM) - offsetCustomSym - else 0 + offsetCustomSym + 1 + else + 1) * if (flipY) 1 else -1 ) }