From 6e13c2fb0a9b386bcca999a5744a655ec3721aad Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 21 Jul 2009 16:55:35 +0000 Subject: Scale font sizes, for better accuracy. svn path=/trunk/netsurf/; revision=8657 --- gtk/font_pango.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk/font_pango.c') 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; -- cgit v1.2.3