mirror of
https://github.com/glest/glest-source.git
synced 2025-08-20 07:01:21 +02:00
fixed rtl mixed support mode so that words are properly placed in the sentence
This commit is contained in:
@@ -404,6 +404,7 @@ void Font::bidi_cvt(string &str_) {
|
||||
//printf("Line: %d [%s]\n",lineIndex,str_.c_str());
|
||||
|
||||
vector<string> words;
|
||||
if(Font::fontSupportMixedRightToLeft == true) {
|
||||
if(str_.find(" ") != str_.npos) {
|
||||
Tokenize(str_,words," ");
|
||||
|
||||
@@ -411,6 +412,10 @@ void Font::bidi_cvt(string &str_) {
|
||||
else {
|
||||
words.push_back(str_);
|
||||
}
|
||||
}
|
||||
else {
|
||||
words.push_back(str_);
|
||||
}
|
||||
|
||||
vector<string> wordList;
|
||||
wordList.reserve(words.size());
|
||||
|
Reference in New Issue
Block a user