[poppler] poppler/GfxFont.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Wed Dec 26 09:56:44 PST 2007
poppler/GfxFont.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit e92b50bbd3dfc8657b611e3c33129d7c5bae2319
Author: Koji Otani <sho at bbr.jp>
Date: Wed Dec 26 18:56:01 2007 +0100
Use getEmbeddedFontID instead of getEmbeddedFontName to check if a font is embedded or not
diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc
index 1bab34e..79d5a26 100644
--- a/poppler/GfxFont.cc
+++ b/poppler/GfxFont.cc
@@ -1807,11 +1807,12 @@ Gushort *GfxCIDFont::getCodeToGIDMap(FoFiTrueType *ff, int *mapsizep) {
CMapListEntry *lp;
int cmap;
int cmapPlatform, cmapEncoding;
+ Ref embID;
*mapsizep = 0;
if (!ctu) return NULL;
if (getCollection()->cmp("Adobe-Identity") == 0) return NULL;
- if (getEmbeddedFontName() != NULL) {
+ if (getEmbeddedFontID(&embID)) {
/* if this font is embedded font,
* CIDToGIDMap should be embedded in PDF file
* and already set. So return it.
More information about the poppler
mailing list