Commit 42de1348 authored by Kristian Høgsberg's avatar Kristian Høgsberg

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

        * poppler/CairoFontEngine.cc: Only cast to Gfx8BitFont when we
        know for sure we have a truetype font.
        GfxCIDFont::getCIDToGIDLen() can return 0 in which case codeToGID
        will be NULL, and we end up casting it to a Gfx8BitFont.
parent afc05387
2005-05-19 Kristian Høgsberg <krh@redhat.com>
* poppler/CairoFontEngine.cc: Only cast to Gfx8BitFont when we
know for sure we have a truetype font.
GfxCIDFont::getCIDToGIDLen() can return 0 in which case codeToGID
will be NULL, and we end up casting it to a Gfx8BitFont.
2005-05-18 Kristian Høgsberg <krh@redhat.com>
* configure.ac: Require cairo 0.5.0, bump release to 0.3.2.
......
......@@ -193,7 +193,7 @@ CairoFont::CairoFont(GfxFont *gfxFont, XRef *xref, FT_Library lib) {
goto err2;
}
/* This might be set already for the CIDType2 case */
if (codeToGID == NULL) {
if (fontType == fontTrueType) {
codeToGID = ((Gfx8BitFont *)gfxFont)->getCodeToGIDMap(ff);
codeToGIDLen = 256;
}
......
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