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@kde.org>
+// Copyright (C) 2005, 2006, 2008, 2009 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2005, 2006 Kristian Høgsberg <krh@redhat.com>
// Copyright (C) 2006 Takashi Iwai <tiwai@suse.de>
// Copyright (C) 2007 Julien Rebetez <julienr@svn.gnome.org>
@@ -1445,7 +1445,7 @@
delete cMapName;
// CIDToGIDMap (for embedded TrueType fonts)
- if (type == fontCIDType2) {
+ if (type == fontCIDType2 || type == fontCIDType2OT) {
desFontDict->lookup("CIDToGIDMap", &obj1);
if (obj1.isStream()) {
cidToGIDLen = 0;