Commit da44ec7e authored by Kristian Høgsberg's avatar Kristian Høgsberg

2005-05-20 Kristian Høgsberg <krh@redhat.com>

        * poppler/CairoFontEngine.cc: Only get the code to gid map if
        we're using freetype 2.1.7 or older (#3340).
parent 6fe29cf0
2005-05-20 Kristian Høgsberg <krh@redhat.com>
* poppler/CairoFontEngine.cc: Only get the code to gid map if
we're using freetype 2.1.7 or older (#3340).
2005-05-19 Kristian Høgsberg <krh@redhat.com>
* poppler/CairoFontEngine.cc: Only cast to Gfx8BitFont when we
......
......@@ -216,15 +216,18 @@ CairoFont::CairoFont(GfxFont *gfxFont, XRef *xref, FT_Library lib) {
case fontCIDType0:
case fontCIDType0C:
// check for a CFF font
codeToGID = NULL;
codeToGIDLen = 0;
#if HAVE_FREETYPE_217_OR_OLDER
if ((ff1c = FoFiType1C::load(fileName->getCString()))) {
codeToGID = ff1c->getCIDToGIDMap(&codeToGIDLen);
delete ff1c;
} else {
codeToGID = NULL;
codeToGIDLen = 0;
}
if (FT_New_Face(lib, tmpFileName->getCString(), 0, &face)) {
#endif
if (FT_New_Face(lib, fileName->getCString(), 0, &face)) {
gfree(codeToGID);
error(-1, "could not create cid face\n");
goto err2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment