always preserve space char in filters
[swftools.git] / lib / filters / remove_font_transforms.c
index c92816c..84a873c 100644 (file)
@@ -138,6 +138,11 @@ static transformedfont_t* transformedfont_new(gfxfont_t*orig, mymatrix_t*m)
     f->orig = orig;
     f->matrix = *m;
     f->used = malloc(sizeof(f->used[0])*orig->num_glyphs);
+    int t;
+    for(t=0;t<orig->num_glyphs;t++) {
+       if(orig->glyphs[t].unicode==32)
+           f->used[t]=1; //always preserve the space char in fonts
+    }
     return f;
 }