X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fpdf%2FInfoOutputDev.cc;h=5990d4ffbf05d6950f62082be4a2e6efe0891856;hb=ad99af72e37b3c3ab2a84d544a12c0ac11fa72f0;hp=e0fc2e3ac306a0adbc0f273b1bf44f284d13a97d;hpb=9d29b25fe674ceacbdf4b7beaba2c0cc3405dbc6;p=swftools.git diff --git a/lib/pdf/InfoOutputDev.cc b/lib/pdf/InfoOutputDev.cc index e0fc2e3..5990d4f 100644 --- a/lib/pdf/InfoOutputDev.cc +++ b/lib/pdf/InfoOutputDev.cc @@ -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; - 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) @@ -176,8 +171,6 @@ static gfxfont_t* createGfxFont(FontInfo*src) gfxglyph_t*glyph = &font->glyphs[font->num_glyphs]; src->glyphs[t]->glyphid = font->num_glyphs; glyph->unicode = src->glyphs[t]->unicode; - if(glyph->unicode >= font->max_unicode) - font->max_unicode = glyph->unicode+1; gfxdrawer_t drawer; gfxdrawer_target_gfxline(&drawer); int s;