summaryrefslogtreecommitdiff
path: root/gtk/font_pango.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/font_pango.c')
-rw-r--r--gtk/font_pango.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/font_pango.c b/gtk/font_pango.c
index e5f561c2f..c0d789344 100644
--- a/gtk/font_pango.c
+++ b/gtk/font_pango.c
@@ -304,10 +304,10 @@ PangoFontDescription *nsfont_style_to_description(
size = fstyle->size;
- if (size < (unsigned)abs(option_font_min_size / 10))
- size = option_font_min_size / 10;
+ if (size < (unsigned)abs(option_font_min_size / 10) * FONT_SIZE_SCALE)
+ size = (option_font_min_size / 10) * FONT_SIZE_SCALE;
- size *= PANGO_SCALE;
+ size = (size * PANGO_SCALE) / FONT_SIZE_SCALE;
if (fstyle->flags & FONTF_ITALIC)
style = PANGO_STYLE_ITALIC;