From 16a1056ad5c25f12f7c9b291fcc78dd1f594671c Mon Sep 17 00:00:00 2001 From: kramm Date: Thu, 27 Jun 2002 06:31:21 +0000 Subject: [PATCH] CIDFonts: look for external replacement. --- pdf2swf/SWFOutputDev.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pdf2swf/SWFOutputDev.cc b/pdf2swf/SWFOutputDev.cc index 1af448c..f0533fa 100644 --- a/pdf2swf/SWFOutputDev.cc +++ b/pdf2swf/SWFOutputDev.cc @@ -1198,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) { -- 1.7.10.4