diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-02-16 09:18:31 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-02-16 09:18:31 +0100 |
commit | 4c303cba1745f13057ccbc9c21eaeb44fe955efe (patch) | |
tree | 85feb4a36b0e39a33c26cede1f9e98937bd7611d /src | |
parent | 8e2c9b8116d1b337a3cfa8b1c856a4dab5cf84c5 (diff) |
check base font against font_min_size
Diffstat (limited to 'src')
-rw-r--r-- | src/styleengine.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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; |