summaryrefslogtreecommitdiffstats
path: root/src/render/Font.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-15 23:24:49 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-15 23:24:49 +0200
commit3e460d94acd6e08301b0be2d4de58fe8f65aff57 (patch)
treefef6627eef779fe2c38eebf8a8c9fd0857fbcb8c /src/render/Font.h
parentMerge remote-tracking branch 'origin/master' into MoreLanguages (diff)
downloadre3-3e460d94acd6e08301b0be2d4de58fe8f65aff57.tar
re3-3e460d94acd6e08301b0be2d4de58fe8f65aff57.tar.gz
re3-3e460d94acd6e08301b0be2d4de58fe8f65aff57.tar.bz2
re3-3e460d94acd6e08301b0be2d4de58fe8f65aff57.tar.lz
re3-3e460d94acd6e08301b0be2d4de58fe8f65aff57.tar.xz
re3-3e460d94acd6e08301b0be2d4de58fe8f65aff57.tar.zst
re3-3e460d94acd6e08301b0be2d4de58fe8f65aff57.zip
Diffstat (limited to '')
-rw-r--r--src/render/Font.h6
1 files changed, 6 insertions, 0 deletions
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
};