X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxfilter.c;h=f1a341ae541fcef91e7418b837bcbf54f62c8f9a;hp=24b969e7634b071c1ece1f78d940d1f92f628099;hb=3116692a2512f2bfae346a1074d1fdfa00ea9d2c;hpb=905772d04a1c2dd73802c6dde5bd50e9701b7af6 diff --git a/lib/gfxfilter.c b/lib/gfxfilter.c index 24b969e..f1a341a 100644 --- a/lib/gfxfilter.c +++ b/lib/gfxfilter.c @@ -361,7 +361,7 @@ gfxfilterchain_t* gfxfilterchain_parse(const char*_filterexpr) *colon = 0; char*newcmd = 0; char param = 0; - + /* fixme: change this from a dict_t to gfxparams_t? */ if(eq && eq < colon) { // parameter *eq = 0; @@ -377,6 +377,7 @@ gfxfilterchain_t* gfxfilterchain_parse(const char*_filterexpr) if(!param || lastitem) { if(!cmd && lastitem) cmd = newcmd; + assert(cmd); gfxfilterbase_t*f = 0; if(!strcmp(cmd, "maketransparent")) { char*alphastr = dict_lookup(params, "alpha"); @@ -387,6 +388,9 @@ gfxfilterchain_t* gfxfilterchain_parse(const char*_filterexpr) } else if(!strcmp(cmd, "remove_font_transforms")) { f = malloc(sizeof(gfxtwopassfilter_t)); gfxtwopassfilter_remove_font_transforms_init((gfxtwopassfilter_t*)f); + } else if(!strcmp(cmd, "vectors_to_glyphs")) { + f = malloc(sizeof(gfxtwopassfilter_t)); + gfxtwopassfilter_vectors_to_glyphs_init((gfxtwopassfilter_t*)f); } else if(!strcmp(cmd, "one_big_font")) { f = malloc(sizeof(gfxtwopassfilter_t)); gfxtwopassfilter_one_big_font_init((gfxtwopassfilter_t*)f);