[poppler] Branch 'poppler-0.10' - poppler/GfxFont.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Mar 11 15:01:45 PDT 2009


 poppler/GfxFont.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 4f62c4bcd91dc1ad9f98da6e556fd5d688baf9e7
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Mar 11 23:00:37 2009 +0100

    fontCIDType2OT fonts can also have a CIDToGIDMap
    
    Fixes bug #20605

diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc
index 9cfa4f9..2ebcc91 100644
--- a/poppler/GfxFont.cc
+++ b/poppler/GfxFont.cc
@@ -10,7 +10,7 @@
 //
 // Modified under the Poppler project - http://poppler.freedesktop.org
 //
-// Copyright (C) 2005, 2006, 2008 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2005, 2006, 2008, 2009 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2005, 2006 Kristian Høgsberg <krh at redhat.com>
 // Copyright (C) 2006 Takashi Iwai <tiwai at suse.de>
 // Copyright (C) 2007 Julien Rebetez <julienr at svn.gnome.org>
@@ -1445,7 +1445,7 @@ GfxCIDFont::GfxCIDFont(XRef *xref, char *tagA, Ref idA, GooString *nameA,
   delete cMapName;
 
   // CIDToGIDMap (for embedded TrueType fonts)
-  if (type == fontCIDType2) {
+  if (type == fontCIDType2 || type == fontCIDType2OT) {
     desFontDict->lookup("CIDToGIDMap", &obj1);
     if (obj1.isStream()) {
       cidToGIDLen = 0;


More information about the poppler mailing list