Made symbol font size and alignment scriptable.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1091 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-08 00:35:53 +00:00
parent 01630e0f5f
commit 01a220f199
4 changed files with 20 additions and 15 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ void SymbolTextElement::getCharInfo(RotatedDC& dc, double scale, vector<CharInfo
}
double SymbolTextElement::minScale() const {
return min(font.size, font.scale_down_to) / max(0.01, font.size);
return min(font.size(), font.scale_down_to) / max(0.01, font.size());
}
double SymbolTextElement::scaleStep() const {
return 1. / max(font.size * 4, 1.);