fixed rtl mixed support mode so that words are properly placed in the sentence
This commit is contained in:
parent
f0737ac682
commit
429db5ff66
|
@ -404,9 +404,14 @@ void Font::bidi_cvt(string &str_) {
|
||||||
//printf("Line: %d [%s]\n",lineIndex,str_.c_str());
|
//printf("Line: %d [%s]\n",lineIndex,str_.c_str());
|
||||||
|
|
||||||
vector<string> words;
|
vector<string> words;
|
||||||
if(str_.find(" ") != str_.npos) {
|
if(Font::fontSupportMixedRightToLeft == true) {
|
||||||
Tokenize(str_,words," ");
|
if(str_.find(" ") != str_.npos) {
|
||||||
|
Tokenize(str_,words," ");
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
words.push_back(str_);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
words.push_back(str_);
|
words.push_back(str_);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user