X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2FSWFOutputDev.cc;h=f0533fa08af72d2ff5e10a1cf765aad3db73cbbc;hb=bcc24611dd8738826b495e48ce2fdc8ce9c0b3e2;hp=3bd4c3a5f03b249ab2f499946fae5a229285aeca;hpb=70423e816cb06b8957cf224920e4cbb2e0090dab;p=swftools.git diff --git a/pdf2swf/SWFOutputDev.cc b/pdf2swf/SWFOutputDev.cc index 3bd4c3a..f0533fa 100644 --- a/pdf2swf/SWFOutputDev.cc +++ b/pdf2swf/SWFOutputDev.cc @@ -578,6 +578,7 @@ void SWFOutputDev::beginString(GfxState *state, GString *s) } int charcounter = 0; +int ciderror = 0; void SWFOutputDev::drawChar(GfxState *state, double x, double y, double dx, double dy, double originX, double originY, @@ -590,7 +591,9 @@ void SWFOutputDev::drawChar(GfxState *state, double x, double y, GfxFont*font = state->getFont(); Gfx8BitFont*font8; if(font->isCIDFont()) { - logf(" CID Font"); + if(!ciderror) + logf(" Not drawing CID Font characters!"); + ciderror++; return; } if(font->getType() == fontType3) { @@ -1195,8 +1198,12 @@ void SWFOutputDev::updateFont(GfxState *state) } } else { - showFontError(gfxFont,0); - fontname = substituteFont(gfxFont, fontname); + int newt1id = searchT1Font(fontname); + if(newt1id<0) { + showFontError(gfxFont,0); + fontname = substituteFont(gfxFont, fontname); + } else + this->t1id = newt1id; } } else { if(fontname) {