diff options
Diffstat (limited to 'src')
-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 (); |