implemented "direction:vertical" support, also for symbols

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@269 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-04-19 23:54:39 +00:00
parent b23040989e
commit 0d3ab74d32
5 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ void FontTextElement::getCharInfo(RotatedDC& dc, double scale, vector<CharInfo>&
RealSize s = dc.GetTextExtent(content.substr(start - this->start, i - start + 1));
out.push_back(CharInfo(RealSize(s.width - prev_width, s.height),
c == _('\n') ? break_style :
c == _(' ') ? BREAK_SOFT : BREAK_NO
c == _(' ') ? BREAK_SOFT : BREAK_MAYBE
));
prev_width = s.width;
}