From 942b11633de3a475892567160140e6f7c465d198 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Sun, 10 Mar 2013 13:23:52 +0800 Subject: [PATCH] .. --- src/util/ffw.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/util/ffw.c b/src/util/ffw.c index 1e6dbb8..d10a85e 100644 --- a/src/util/ffw.c +++ b/src/util/ffw.c @@ -319,6 +319,13 @@ void ffw_metric(double * ascent, double * descent) sf->descent = em - bb.maxy; */ + /* + * The embedded fonts are likely to have inconsistent values for the 3 sets of ascent/descent + * PDF viewers don't care, since they don't even use these values + * But have to unify them, for different browsers on different platforms + * Things may become easier when there are CSS rules for baseline-based positioning. + */ + info->os2_winascent = a; info->os2_typoascent = a; info->hhead_ascent = a;