From cc662408b79e0a82f707c498721c47bdd553301a Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 24 Jul 2009 00:17:43 +0000 Subject: Fix text/plain lineheight calculation svn path=/trunk/netsurf/; revision=8763 --- render/textplain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'render') diff --git a/render/textplain.c b/render/textplain.c index 256d9b8db..708c6b2f6 100644 --- a/render/textplain.c +++ b/render/textplain.c @@ -736,6 +736,7 @@ float textplain_line_height(void) * Then use a constant line height of 1.2 x font size. */ return FIXTOFLT(FDIVI((FMUL(FLTTOFIX(1.2), - FMULI(nscss_screen_dpi, textplain_style.size))), 72)); + FMULI(nscss_screen_dpi, + (textplain_style.size / FONT_SIZE_SCALE)))), 72)); } -- cgit v1.2.3