don't try to load a Type3 font.
[swftools.git] / pdf2swf / SWFOutputDev.cc
index 58fb1a2..50a7016 100644 (file)
@@ -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("<warning> Font %s could not be loaded.", fontname);
+       msg("<warning> Font %s %scould not be loaded.", fontname, embedded?"":"(not embedded) ");
        msg("<warning> Try putting a TTF version of that font (named \"%s.ttf\") into /swftools/fonts", fontname);
        fileName = substituteFont(gfxFont, fontid);
     }