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
+3
View File
@@ -51,3 +51,6 @@ void FontTextElement::getCharInfo(RotatedDC& dc, double scale, vector<CharInfo>&
double FontTextElement::minScale() const {
return min(font->size, font->scale_down_to) / max(0.01, font->size);
}
double FontTextElement::scaleStep() const {
return 1. / max(font->size, 1.);
}