[poppler] poppler/poppler: CairoFontEngine.cc,1.10,1.11

Kristian Hogsberg krh at freedesktop.org
Wed May 18 22:16:24 PDT 2005


Update of /cvs/poppler/poppler/poppler
In directory gabe:/tmp/cvs-serv31734/poppler

Modified Files:
	CairoFontEngine.cc 
Log Message:
2005-05-19  Kristian Høgsberg  <krh at 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.



Index: CairoFontEngine.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/CairoFontEngine.cc,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- CairoFontEngine.cc	16 May 2005 19:06:00 -0000	1.10
+++ CairoFontEngine.cc	19 May 2005 05:16:22 -0000	1.11
@@ -193,7 +193,7 @@
       goto err2;
     }
     /* This might be set already for the CIDType2 case */
-    if (codeToGID == NULL) {
+    if (fontType == fontTrueType) {
       codeToGID = ((Gfx8BitFont *)gfxFont)->getCodeToGIDMap(ff);
       codeToGIDLen = 256;
     }



More information about the poppler mailing list