From b7bd63f6ca2817facb1fa3722cca830f39098429 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 15 Jan 2009 19:30:48 +0100 Subject: use prefs.font_factor to scale base font --- src/styleengine.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/styleengine.cc') 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 #include #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 (); -- cgit v1.2.3