From 8666dc0e58714f80f49e86be22b1522785a33608 Mon Sep 17 00:00:00 2001 From: kramm Date: Fri, 20 Aug 2004 16:44:07 +0000 Subject: [PATCH] don't try to load a Type3 font. --- pdf2swf/SWFOutputDev.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pdf2swf/SWFOutputDev.cc b/pdf2swf/SWFOutputDev.cc index d0c7002..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 */ -- 1.7.10.4