From 4c303cba1745f13057ccbc9c21eaeb44fe955efe Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Mon, 16 Feb 2009 09:18:31 +0100 Subject: check base font against font_min_size --- src/styleengine.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/styleengine.cc b/src/styleengine.cc index 28effb92..5939547b 100644 --- a/src/styleengine.cc +++ b/src/styleengine.cc @@ -32,6 +32,8 @@ StyleEngine::StyleEngine (dw::core::Layout *layout) { /* Create a dummy font, attribute, and tag for the bottom of the stack. */ font_attrs.name = prefs.font_sans_serif; font_attrs.size = (int) (14 * prefs.font_factor + 0.5); + if (font_attrs.size < prefs.font_min_size) + font_attrs.size = prefs.font_min_size; font_attrs.weight = 400; font_attrs.style = FONT_STYLE_NORMAL; -- cgit v1.2.3