always assume space chars are at 32
authorMatthias Kramm <kramm@quiss.org>
Wed, 17 Mar 2010 21:01:54 +0000 (14:01 -0700)
committerMatthias Kramm <kramm@quiss.org>
Wed, 17 Mar 2010 21:03:34 +0000 (14:03 -0700)
lib/pdf/InfoOutputDev.cc

index bd1a0b5..5990d4f 100644 (file)
@@ -119,14 +119,9 @@ static int findSpace(gfxfont_t*font)
        gfxglyph_t*g = &font->glyphs[t];
        if(GLYPH_IS_SPACE(g)) {
            if(g->unicode == 32) return t;
        gfxglyph_t*g = &font->glyphs[t];
        if(GLYPH_IS_SPACE(g)) {
            if(g->unicode == 32) return t;
-           if(first_space<0)
-               first_space = t;
        }
     }
        }
     }
-    if(font->num_glyphs>32 && GLYPH_IS_SPACE(&font->glyphs[32])) {
-       return 32;
-    }
-    return first_space;
+    return -1;
 }
 
 static int addSpace(gfxfont_t*font)
 }
 
 static int addSpace(gfxfont_t*font)