- 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:
Mark Vejvoda
2013-11-13 07:56:19 +00:00
parent 0557a1195e
commit 0a0e3f408a
8 changed files with 511 additions and 2 deletions

View File

@@ -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();