summaryrefslogtreecommitdiffstats
path: root/src/render/Font.h
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-02-19 00:30:02 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-02-19 00:30:02 +0100
commitdfa0c8bf1921d955f1ea5af6388a381b280fcd98 (patch)
tree639af8a47ae411af564387c5cf1f700b9495390d /src/render/Font.h
parentGet keyboard input from X11 on Linux (diff)
parentname error strings to REVC (diff)
downloadre3-dfa0c8bf1921d955f1ea5af6388a381b280fcd98.tar
re3-dfa0c8bf1921d955f1ea5af6388a381b280fcd98.tar.gz
re3-dfa0c8bf1921d955f1ea5af6388a381b280fcd98.tar.bz2
re3-dfa0c8bf1921d955f1ea5af6388a381b280fcd98.tar.lz
re3-dfa0c8bf1921d955f1ea5af6388a381b280fcd98.tar.xz
re3-dfa0c8bf1921d955f1ea5af6388a381b280fcd98.tar.zst
re3-dfa0c8bf1921d955f1ea5af6388a381b280fcd98.zip
Diffstat (limited to 'src/render/Font.h')
-rw-r--r--src/render/Font.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/render/Font.h b/src/render/Font.h
index b0cd0a27..42eb7b4c 100644
--- a/src/render/Font.h
+++ b/src/render/Font.h
@@ -123,7 +123,7 @@ enum
class CFont
{
#ifdef MORE_LANGUAGES
- static int16 Size[LANGSET_MAX][MAX_FONTS][193];
+ static int16 Size[LANGSET_MAX][MAX_FONTS][210];
static uint8 LanguageSet;
static int32 Slot;
#else
@@ -156,11 +156,11 @@ public:
#endif
static int GetNumberLines(float xstart, float ystart, wchar *s);
static void GetTextRect(CRect *rect, float xstart, float ystart, wchar *s);
-#ifdef MORE_LANGUAGES
- static bool PrintString(float x, float y, wchar *start, wchar* &end, float spwidth, float japX);
-#else
+//#ifdef MORE_LANGUAGES
+// static bool PrintString(float x, float y, wchar *start, wchar* &end, float spwidth, float japX);
+//#else
static void PrintString(float x, float y, uint32, wchar *start, wchar *end, float spwidth);
-#endif
+//#endif
static void PrintStringFromBottom(float x, float y, wchar *str);
static float GetCharacterWidth(wchar c);
static float GetCharacterSize(wchar c);
@@ -169,12 +169,12 @@ public:
static float GetStringWidth_Jap(wchar* s);
#endif
static uint16 *GetNextSpace(wchar *s);
-#ifdef MORE_LANGUAGES
- static uint16 *ParseToken(wchar *s, bool japShit = false);
-#else
+//#ifdef MORE_LANGUAGES
+// static uint16 *ParseToken(wchar *s, bool japShit = false);
+//#else
static uint16 *ParseToken(wchar *s);
static uint16 *ParseToken(wchar *s, CRGBA &color, bool &flash, bool &bold);
-#endif
+//#endif
static void DrawFonts(void);
static void RenderFontBuffer(void);
static uint16 character_code(uint8 c);
@@ -212,6 +212,6 @@ public:
static bool IsAnsiCharacter(wchar* s);
static bool IsJapanesePunctuation(wchar* str);
static bool IsJapanese() { return LanguageSet == FONT_LANGSET_JAPANESE; }
- static bool IsJapaneseFont() { return IsJapanese() && (Details.style == FONT_JAPANESE || Details.style == FONT_PAGER); }
+ static bool IsJapaneseFont() { return IsJapanese() && (Details.style == FONT_JAPANESE); }
#endif
};