X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2FSWFOutputDev.cc;h=50a7016c04095091aabfd9745a078129431f26ed;hb=38a2b89635d378eab8df2ba2984bef2433ddc0a1;hp=58fb1a2c4abfd5a5aed927a9860459d2a1f703af;hpb=491209fb0a164d281924844fc8b032e6fb138909;p=swftools.git diff --git a/pdf2swf/SWFOutputDev.cc b/pdf2swf/SWFOutputDev.cc index 58fb1a2..50a7016 100644 --- a/pdf2swf/SWFOutputDev.cc +++ b/pdf2swf/SWFOutputDev.cc @@ -1175,9 +1175,12 @@ void SWFOutputDev::updateFont(GfxState *state) } // look for Type 3 font - if (!type3Warning && gfxFont->getType() == fontType3) { - type3Warning = gTrue; - showFontError(gfxFont, 2); + if (gfxFont->getType() == fontType3) { + if(!type3Warning) { + type3Warning = gTrue; + showFontError(gfxFont, 2); + } + return; } /* now either load the font, or find a substitution */ @@ -1205,7 +1208,7 @@ void SWFOutputDev::updateFont(GfxState *state) } if(!fileName) { char * fontname = getFontName(gfxFont); - msg(" Font %s could not be loaded.", fontname); + msg(" Font %s %scould not be loaded.", fontname, embedded?"":"(not embedded) "); msg(" Try putting a TTF version of that font (named \"%s.ttf\") into /swftools/fonts", fontname); fileName = substituteFont(gfxFont, fontid); }