From 9b99bbff6f02499c6abf801a62dcd7a64733a7ec Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Fri, 12 Mar 2010 16:18:12 -0800 Subject: [PATCH 1/1] always preserve space char in filters --- lib/filters/remove_font_transforms.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/filters/remove_font_transforms.c b/lib/filters/remove_font_transforms.c index c92816c..84a873c 100644 --- a/lib/filters/remove_font_transforms.c +++ b/lib/filters/remove_font_transforms.c @@ -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;tnum_glyphs;t++) { + if(orig->glyphs[t].unicode==32) + f->used[t]=1; //always preserve the space char in fonts + } return f; } -- 1.7.10.4