added more error messages in case of font problems.
authorkramm <kramm>
Mon, 21 Jun 2004 12:46:14 +0000 (12:46 +0000)
committerkramm <kramm>
Mon, 21 Jun 2004 12:46:14 +0000 (12:46 +0000)
pdf2swf/SWFOutputDev.cc

index 6f7d910..e2ced41 100644 (file)
@@ -1314,6 +1314,7 @@ void SWFOutputDev::updateFont(GfxState *state)
           font directories */
        int newt1id = searchT1Font(fontname);
        if(newt1id<0) {
+           msg("<error> Couldn't find any suitable replacement for %s",fontname);
            showFontError(gfxFont,0);
            fontname = substituteFont(gfxFont, fontname);
        } else
@@ -1335,7 +1336,8 @@ void SWFOutputDev::updateFont(GfxState *state)
   }
 
   if(t1id<0) {
-      showFontError(gfxFont,0);
+      msg("<error> Current font's t1id is %d", t1id);
+      //showFontError(gfxFont,0);
       return;
   }