summaryrefslogtreecommitdiff
path: root/src/styleengine.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-11 17:36:55 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-11 17:36:55 +0100
commit420f14386fb2ac0d5de8427ef6be5cc9c25c85c1 (patch)
treeffa8210ef481dc734a95278d5c9d8cf338188d72 /src/styleengine.cc
parentbc26fde9419c305ffc8e2bf69086d3d74bad23d7 (diff)
add "font_min_size" dillorc option
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;