From 58beb7a00bb1a54662a77a0215c801690b534451 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Tue, 21 Aug 2012 21:31:26 +0200 Subject: [PATCH] better support for CID truetype font --- src/HTMLRenderer/install.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/HTMLRenderer/install.cc b/src/HTMLRenderer/install.cc index c31cf36..080a09e 100644 --- a/src/HTMLRenderer/install.cc +++ b/src/HTMLRenderer/install.cc @@ -155,7 +155,8 @@ void HTMLRenderer::install_embedded_font(GfxFont * font, const string & suffix, GfxCIDFont * _font = dynamic_cast(font); // code2GID has been stored for embedded CID fonts - code2GID = _font->getCodeToGIDMap(nullptr, &code2GID_len); + code2GID = _font->getCIDToGID(); + code2GID_len = _font->getCIDToGIDLen(); } }