From 8978e15dc09951217841849a0381930a04027203 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Fri, 21 Sep 2012 03:11:36 +0800 Subject: [PATCH] fix round --- src/ffw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ffw.c b/src/ffw.c index 678ed78..0e0b333 100644 --- a/src/ffw.c +++ b/src/ffw.c @@ -253,7 +253,7 @@ void ffw_metric(double * ascent, double * descent, int * em_size) int a = bb.maxy; int d = bb.miny; - sf->ascent = min((int)round(bb.maxy), em); + sf->ascent = min(floor(bb.maxy+0.5), em); sf->descent = em - bb.maxy; info->os2_winascent = a;