X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=pdf%2Fxpdf%2FTTFont.cc;h=fc6d84905ebcef49b63abd85e5aa7c5c61653d9e;hb=ed8d29b07f2233cbaa4c134b78710619049a652b;hp=ea3fad2223b4fe66ed4a3dbd9229e808854cbeed;hpb=2a393c134fe3fe8eb85bf818cb7ad6ae4396322a;p=evince.git diff --git a/pdf/xpdf/TTFont.cc b/pdf/xpdf/TTFont.cc index ea3fad22..fc6d8490 100644 --- a/pdf/xpdf/TTFont.cc +++ b/pdf/xpdf/TTFont.cc @@ -2,18 +2,18 @@ // // TTFont.cc // -// Copyright 2001-2002 Glyph & Cog, LLC +// Copyright 2001-2003 Glyph & Cog, LLC // //======================================================================== -#ifdef __GNUC__ -#pragma implementation -#endif - #include #if !FREETYPE2 && (HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H) +#ifdef USE_GCC_PRAGMAS +#pragma implementation +#endif + #include #include "gmem.h" #include "GlobalParams.h" @@ -80,7 +80,7 @@ TTFontFile::TTFontFile(TTFontEngine *engineA, char *fontFileName, unicodeCmap = macRomanCmap = msSymbolCmap = 0xffff; for (i = 0; i < props.num_CharMaps; ++i) { if (!TT_Get_CharMap_ID(face, i, &platform, &encoding)) { - if (platform == 3 && encoding == 1) { + if ((platform == 3 && encoding == 1) || platform == 0) { unicodeCmap = i; } else if (platform == 1 && encoding == 0) { macRomanCmap = i;