From 7245dc23fb9775eb827c0e100e182e5cf2a1ad19 Mon Sep 17 00:00:00 2001 From: Cameron Dutro Date: Mon, 8 Oct 2018 08:50:04 -0700 Subject: [PATCH 1/2] Enable transformation for the hmtx table --- src/woff2_enc.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/woff2_enc.cc b/src/woff2_enc.cc index ec00878..c5bc077 100644 --- a/src/woff2_enc.cc +++ b/src/woff2_enc.cc @@ -14,6 +14,7 @@ #include #include #include +#include #include #include "./buffer.h" @@ -200,6 +201,13 @@ bool TransformFontCollection(FontCollection* font_collection) { if (!TransformGlyfAndLocaTables(&font)) { #ifdef FONT_COMPRESSION_BIN fprintf(stderr, "glyf/loca transformation failed.\n"); +#endif + return FONT_COMPRESSION_FAILURE(); + } + + if (!TransformHmtxTable(&font)) { +#ifdef FONT_COMPRESSION_BIN + fprintf(stderr, "hmtx transformation failed.\n"); #endif return FONT_COMPRESSION_FAILURE(); } From 26fe27f2bac216ff6f977433dee9066a0ec150bc Mon Sep 17 00:00:00 2001 From: Cameron Dutro Date: Mon, 8 Oct 2018 08:57:01 -0700 Subject: [PATCH 2/2] Oops, remove superfluous include --- src/woff2_enc.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/woff2_enc.cc b/src/woff2_enc.cc index c5bc077..0b95273 100644 --- a/src/woff2_enc.cc +++ b/src/woff2_enc.cc @@ -14,7 +14,6 @@ #include #include #include -#include #include #include "./buffer.h"