diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-15 19:30:48 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-15 19:30:48 +0100 |
commit | b7bd63f6ca2817facb1fa3722cca830f39098429 (patch) | |
tree | 93e4f555d979bec51b299b44be297ecde6ccdbc4 /src/styleengine.cc | |
parent | 0058f32eb536c7c286a6366da9e517e58dbe4a69 (diff) |
use prefs.font_factor to scale base font
Diffstat (limited to 'src/styleengine.cc')
-rw-r--r-- | src/styleengine.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc index b5e2a3a4..44454570 100644 --- a/src/styleengine.cc +++ b/src/styleengine.cc @@ -12,6 +12,7 @@ #include <stdio.h> #include <math.h> #include "../dlib/dlib.h" +#include "prefs.h" #include "styleengine.hh" using namespace dw::core::style; @@ -30,8 +31,8 @@ StyleEngine::StyleEngine (dw::core::Layout *layout) { /* Create a dummy font, attribute, and tag for the bottom of the stack. */ font_attrs.name = "helvetica"; - font_attrs.size = 12; - font_attrs.weight = 400; + font_attrs.size = (int) (12 * prefs.font_factor + 0.5); + font_attrs.weight = CssProperty::CSS_FONT_WEIGHT_NORMAL; font_attrs.style = FONT_STYLE_NORMAL; style_attrs.initValues (); |