From b650dfbb0b0700440cc88da31f97cec45b4140de Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 26 Jul 2015 21:08:34 +0200 Subject: [PATCH] [cff] Don't use `hmtx' table for LSB (#45520). * src/cff/cffgload.c (cff_slot_load): Use `htmx' table for advance width only. Bug introduced 2015-04-10. --- ChangeLog | 7 +++++++ src/cff/cffgload.c | 4 +--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2827043e4..86e40ad88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2015-07-26 Matthias Clasen + + [cff] Don't use `hmtx' table for LSB (#45520). + + * src/cff/cffgload.c (cff_slot_load): Use `htmx' table for advance + width only. Bug introduced 2015-04-10. + 2015-07-09 Werner Lemberg Better support of user-supplied C++ namespaces. diff --git a/src/cff/cffgload.c b/src/cff/cffgload.c index 43054f8c3..a075ddc01 100644 --- a/src/cff/cffgload.c +++ b/src/cff/cffgload.c @@ -3064,9 +3064,7 @@ metrics->width = cbox.xMax - cbox.xMin; metrics->height = cbox.yMax - cbox.yMin; - if ( !face->horizontal.number_Of_HMetrics ) - metrics->horiBearingX = cbox.xMin; - + metrics->horiBearingX = cbox.xMin; metrics->horiBearingY = cbox.yMax; if ( has_vertical_info )