From: Matthias Kramm Date: Fri, 12 Mar 2010 23:57:00 +0000 (-0800) Subject: always store detected spaces at unicode 32 X-Git-Tag: version-0-9-1~94 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=2f0ee9b97abeeb1a74722ccdfaa0ffa6b5427cd0 always store detected spaces at unicode 32 --- diff --git a/lib/pdf/InfoOutputDev.cc b/lib/pdf/InfoOutputDev.cc index 701c966..214814f 100644 --- a/lib/pdf/InfoOutputDev.cc +++ b/lib/pdf/InfoOutputDev.cc @@ -131,6 +131,12 @@ static int findSpace(gfxfont_t*font) static int addSpace(gfxfont_t*font) { + /* first, make sure the new space char is the only char that'll use unicode 32 */ + int t; + for(t=0;tnum_glyphs;t++) { + if(font->glyphs[t].unicode==32) + font->glyphs[t].unicode=0; + } font->num_glyphs++; font->glyphs = (gfxglyph_t*)realloc(font->glyphs, sizeof(gfxglyph_t)*font->num_glyphs); gfxglyph_t*g = &font->glyphs[font->num_glyphs-1];