+ if(currentfont->lastchar>=0 && currentfont->lasty == y) {
+ double xshift = x - currentfont->lastx;
+ if(xshift>=0 && xshift > g->advance_max) {
+ g->advance_max = xshift;
+ }
+ }
+
+ currentfont->lastx = x;
+ currentfont->lasty = y;
+ currentfont->lastchar = code;
+}
+
+GBool InfoOutputDev::beginType3Char(GfxState *state, double x, double y, double dx, double dy, CharCode code, Unicode *u, int uLen)
+{
+ GfxFont*font = state->getFont();
+ if(!font)
+ return gTrue;
+ if(font->getType() != fontType3)
+ return gTrue;
+
+ char*id = getFontID(font);
+ currentfont = (FontInfo*)id2font->lookup(id);
+ if(!currentfont) {
+ currentfont = new FontInfo;
+ currentfont->font = font;
+ GString* idStr = new GString(id);
+ id2font->add(idStr, (void*)currentfont);
+ num_fonts++;
+ }
+ currentfont = currentfont;
+ free(id);