aboutsummaryrefslogtreecommitdiff
path: root/src/styleengine.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/styleengine.cc')
-rw-r--r--src/styleengine.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index c7d8a39e..81054a06 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -222,6 +222,10 @@ void StyleEngine::apply (StyleAttrs *attrs, CssPropertyList *props) {
computeValue (&fontAttrs.size, p->value.intVal, parentFont,
parentFont->size);
}
+
+ if (fontAttrs.size < prefs.font_min_size)
+ fontAttrs.size = prefs.font_min_size;
+
break;
case CSS_PROPERTY_FONT_STYLE:
fontAttrs.style = (FontStyle) p->value.intVal;