diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-02-11 17:36:55 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-02-11 17:36:55 +0100 |
commit | 420f14386fb2ac0d5de8427ef6be5cc9c25c85c1 (patch) | |
tree | ffa8210ef481dc734a95278d5c9d8cf338188d72 /src/styleengine.cc | |
parent | bc26fde9419c305ffc8e2bf69086d3d74bad23d7 (diff) |
add "font_min_size" dillorc option
Diffstat (limited to 'src/styleengine.cc')
-rw-r--r-- | src/styleengine.cc | 4 |
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; |