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 --- desktop/save_pdf/font_haru.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'desktop/save_pdf/font_haru.c') diff --git a/desktop/save_pdf/font_haru.c b/desktop/save_pdf/font_haru.c index faed7c168..0bf86c340 100644 --- a/desktop/save_pdf/font_haru.c +++ b/desktop/save_pdf/font_haru.c @@ -336,7 +336,7 @@ bool haru_nsfont_apply_style(const plot_font_style_t *fstyle, LOG(("Setting font: %s", font_name)); #endif - size = fstyle->size; + size = fstyle->size; if (font != NULL) size *= pdf_text_scale; @@ -344,6 +344,8 @@ bool haru_nsfont_apply_style(const plot_font_style_t *fstyle, if (size <= 0) return true; + size /= FONT_SIZE_SCALE; + if (size > HPDF_MAX_FONTSIZE) size = HPDF_MAX_FONTSIZE; -- cgit v1.2.3