X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswftext.c;h=ddfd76182ba63f48fefd6f4cb9dec4d81bfc74da;hb=d597c1a412999e1fc4f6d02028d2887e20fe6544;hp=064b47e9a4cef8f836e61c00c7330d59e8559e52;hpb=91cad7c2baf4d257bd97bcea1244937c21c083cd;p=swftools.git diff --git a/lib/modules/swftext.c b/lib/modules/swftext.c index 064b47e..ddfd761 100644 --- a/lib/modules/swftext.c +++ b/lib/modules/swftext.c @@ -310,7 +310,8 @@ int swf_FontExtract_DefineFont2(int id, SWFFONT * font, TAG * tag) swf_GetSimpleShape(tag, &(font->glyph[t].shape)); } - swf_SetTagPos(tag, offset[glyphcount]+offset_start); + if(glyphcount) + swf_SetTagPos(tag, offset[glyphcount]+offset_start); free(offset); @@ -801,6 +802,7 @@ int swf_FontInitUsage(SWFFONT * f) f->use->is_reduced = 0; f->use->used_glyphs = 0; f->use->chars = (int*)rfx_calloc(sizeof(f->use->chars[0]) * f->numchars); + f->use->glyphs_specified = 0; return 0; }