X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fpdf%2FGFXOutputDev.cc;h=24a8f05d0fbf6ee5dd7b992baefe81e1d30fa337;hp=0a7e4bda1cb7e80b53cc10cbd147b50a6f539979;hb=1f75b5311e88f8a6d71146cf2e709f1f5666dfc8;hpb=75899f5941b62b46de85b6fe63d93adab6235ac6 diff --git a/lib/pdf/GFXOutputDev.cc b/lib/pdf/GFXOutputDev.cc index 0a7e4bd..24a8f05 100644 --- a/lib/pdf/GFXOutputDev.cc +++ b/lib/pdf/GFXOutputDev.cc @@ -960,7 +960,7 @@ void GFXOutputDev::drawChar(GfxState *state, double x, double y, } Unicode u = uLen?(_u[0]):0; - msg(" drawChar(%f,%f,c='%c' (%d), u=%d <%d>) CID=%d render=%d\n",x,y,(charid&127)>=32?charid:'?', charid, u, uLen, font->isCIDFont(), render); + msg(" drawChar(%f,%f,c='%c' (%d), u=%d <%d>) CID=%d render=%d glyphid=%d\n",x,y,(charid&127)>=32?charid:'?', charid, u, uLen, font->isCIDFont(), render, glyphid); gfxmatrix_t m = this->current_font_matrix; state->transform(x, y, &m.tx, &m.ty); @@ -1447,7 +1447,7 @@ gfxfont_t* createGfxFont(GfxFont*xpdffont, FontInfo*src) font->glyphs = (gfxglyph_t*)malloc(sizeof(gfxglyph_t)*src->num_glyphs); memset(font->glyphs, 0, sizeof(gfxglyph_t)*src->num_glyphs); - font->id = strdup(getFontName(xpdffont)); + font->id = strdup(getFontID(xpdffont)); int t; double quality = (INTERNAL_FONT_SIZE * 0.05) / src->max_size; double scale = 1; @@ -1507,6 +1507,7 @@ gfxfont_t* createGfxFont(GfxFont*xpdffont, FontInfo*src) } } + msg(" %d glyphs.", t, font->num_glyphs); return font; }