From 2f0ee9b97abeeb1a74722ccdfaa0ffa6b5427cd0 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Fri, 12 Mar 2010 15:57:00 -0800 Subject: [PATCH] always store detected spaces at unicode 32 --- lib/pdf/InfoOutputDev.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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]; -- 1.7.10.4