From: kramm Date: Sat, 20 Oct 2001 19:36:49 +0000 (+0000) Subject: fixed a bug. (SWFFont now strdups it's font name) X-Git-Tag: release-0-0-2~41 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=193f333154d8083e525e2f29e90598fcdbe41408;p=swftools.git fixed a bug. (SWFFont now strdups it's font name) --- diff --git a/pdf2swf/swfoutput.cc b/pdf2swf/swfoutput.cc index 074f28b..46f563a 100644 --- a/pdf2swf/swfoutput.cc +++ b/pdf2swf/swfoutput.cc @@ -206,8 +206,10 @@ void drawchar(struct swfoutput*obj, SWFFont*font, char*character, swfmatrix*m) T1_OUTLINE*outline = font->getOutline(character); char* charname = character; - if(!outline) + if(!outline) { + logf("Didn't find %s in current charset", character); return; + } swfmatrix m2=*m; m2.m11/=100; @@ -251,7 +253,7 @@ SWFFont::SWFFont(char*name, int id, char*filename) T1_LoadFont(id); this->name = strdup(T1_GetFontFileName(id)); - this->fontid = name; + this->fontid = strdup(name); this->t1id = id; char**a= T1_GetAllCharNames(id);