always preserve space char in filters
authorMatthias Kramm <kramm@quiss.org>
Sat, 13 Mar 2010 00:18:12 +0000 (16:18 -0800)
committerMatthias Kramm <kramm@quiss.org>
Sat, 13 Mar 2010 00:18:12 +0000 (16:18 -0800)
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);
     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;
 }
 
     return f;
 }