text scaling

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@168 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-24 16:04:24 +00:00
parent 99867b0c0b
commit 1ab6b0cb82
7 changed files with 49 additions and 52 deletions
+7
View File
@@ -48,6 +48,13 @@ double TextElements::minScale() const {
}
return m;
}
double TextElements::scaleStep() const {
double m = 1;
FOR_EACH_CONST(e, elements) {
m = min(m, e->scaleStep());
}
return m;
}
// Helper class for TextElements::fromString, to allow persistent formating state accross recusive calls
struct TextElementsFromString {