mirror of
https://github.com/glest/glest-source.git
synced 2025-08-13 03:44:00 +02:00
- added experimental Right To Left 'mixed mode' support to attempt to make RTL languages with lines having mixed RTL and LTR words display properly (this is a manual hack). To enable, add this to the languages lng file: FONT_RIGHTTOLEFT_MIXED_SUPPORT=true
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#define _SHARED_GRAPHICS_FONT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "font_text.h"
|
||||
#include "leak_dumper.h"
|
||||
|
||||
@@ -69,6 +70,7 @@ public:
|
||||
static bool forceLegacyFonts;
|
||||
static bool forceFTGLFonts;
|
||||
static bool fontIsRightToLeft;
|
||||
static bool fontSupportMixedRightToLeft;
|
||||
static float scaleFontValue;
|
||||
static float scaleFontValueCenterHFactor;
|
||||
static int baseSize;
|
||||
@@ -110,6 +112,7 @@ public:
|
||||
int getSize() const;
|
||||
void setSize(int size);
|
||||
|
||||
static std::vector<std::pair<char, int> > extract_mixed_LTR_RTL_map(string &str_);
|
||||
static void bidi_cvt(string &str_);
|
||||
|
||||
static void resetToDefaults();
|
||||
|
Reference in New Issue
Block a user