From 3e460d94acd6e08301b0be2d4de58fe8f65aff57 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Thu, 16 Apr 2020 00:24:49 +0300 Subject: More japanese --- src/render/Font.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/render/Font.h') diff --git a/src/render/Font.h b/src/render/Font.h index 5218e426..7c1d089f 100644 --- a/src/render/Font.h +++ b/src/render/Font.h @@ -160,5 +160,11 @@ public: #ifdef MORE_LANGUAGES static void ReloadFonts(uint8 set); + + // japanese stuff + static bool IsAnsiCharacter(wchar* s); + static bool IsJapanesePunctuation(wchar* a1); + static bool IsJapanese() { return LanguageSet == FONT_LANGSET_JAPANESE; } + static bool IsJapaneseFont() { return IsJapanese() && (Details.style == FONT_JAPANESE || Details.style == FONT_PAGER); } #endif }; -- cgit v1.2.3