summaryrefslogtreecommitdiffstats
path: root/src/render/Font.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-20 17:11:10 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-20 17:40:54 +0100
commit95448eea3d3d0bc7eb1c1963c4cf8fce56431241 (patch)
tree4a42a44f920e9390eb179a25dd2995474174c1b6 /src/render/Font.h
parentMerge branch 'lcs' into lcsfont (diff)
downloadre3-95448eea3d3d0bc7eb1c1963c4cf8fce56431241.tar
re3-95448eea3d3d0bc7eb1c1963c4cf8fce56431241.tar.gz
re3-95448eea3d3d0bc7eb1c1963c4cf8fce56431241.tar.bz2
re3-95448eea3d3d0bc7eb1c1963c4cf8fce56431241.tar.lz
re3-95448eea3d3d0bc7eb1c1963c4cf8fce56431241.tar.xz
re3-95448eea3d3d0bc7eb1c1963c4cf8fce56431241.tar.zst
re3-95448eea3d3d0bc7eb1c1963c4cf8fce56431241.zip
Diffstat (limited to '')
-rw-r--r--src/render/Font.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/render/Font.h b/src/render/Font.h
index b44cf67f..05c367fb 100644
--- a/src/render/Font.h
+++ b/src/render/Font.h
@@ -59,6 +59,9 @@ struct CFontRenderState
bool8 proportional;
bool8 anonymous_14;
int16 style;
+ int bOutlineOn;
+ int line;
+ bool8 rightJustify;
};
class CSprite2d;
@@ -146,7 +149,6 @@ public:
static void PrintChar(float x, float y, wchar c);
static void PrintString(float x, float y, wchar *s);
#ifdef XBOX_SUBTITLES
- static void PrintStringFromBottom(float x, float y, wchar *str);
static void PrintOutlinedString(float x, float y, wchar *str, float outlineStrength, bool fromBottom, CRGBA outlineColor);
#endif
static int GetNumberLines(float xstart, float ystart, wchar *s);
@@ -157,7 +159,7 @@ public:
static void PrintString(float x, float y, uint32, wchar *start, wchar *end, float spwidth);
#endif
static void PrintStringFromBottom(float x, float y, wchar *str);
- static float GetCharacterWidth(wchar c);
+ static float GetCharacterWidth(wchar c, bool forceProportional = false);
static float GetCharacterSize(wchar c);
static float GetStringWidth(wchar *s, bool spaces = false);
#ifdef MORE_LANGUAGES
@@ -189,6 +191,7 @@ public:
static void SetBackgroundOff(void);
static void SetBackGroundOnlyTextOn(void);
static void SetBackGroundOnlyTextOff(void);
+ static void SetFlashOff(void);
static void SetPropOn(void);
static void SetPropOff(void);
static void SetFontStyle(int16 style);
@@ -205,6 +208,7 @@ public:
static int16 FindNewCharacter(int16 c);
static void FilterOutTokensFromString(wchar*);
+ static bool16 CheckNewLine(wchar *s);
#ifdef MORE_LANGUAGES
static void ReloadFonts(uint8 set);