free(this->pages); this->pages = 0;
}
- gfxfontlist_free(this->gfxfontlist);
+ gfxfontlist_free(this->gfxfontlist, 1);
};
GBool GFXOutputDev::upsideDown()
{
// check for invisible text -- this is used by Acrobat Capture
if (render == RENDER_INVISIBLE) {
col.a = 0;
+ if(!config_extrafontdata)
+ return;
}
GfxFont*font = state->getFont();
msg("<error> Invalid charid %d for font %s", charid, current_font_id);
return gFalse;
}
- gfxcolor_t col={128,0,0,0};
+ gfxcolor_t col={0,0,0,0};
CharCode glyphid = current_fontinfo->glyphs[charid]->glyphid;
device->drawchar(device, current_gfxfont, glyphid, &col, &m);
}
}
this->current_fontinfo = this->info->getFont(id);
+ if(!this->current_fontinfo) {
+ msg("<error> Internal Error: no fontinfo for font %s\n", id);
+ }
if(!this->current_fontinfo->seen) {
dumpFontInfo("<verbose>", gfxFont);
}
gfxfont_t*font = gfxfontlist_findfont(this->gfxfontlist,id);
if(!font) {
font = createGfxFont(gfxFont, current_fontinfo);
- gfxfontlist_addfont(this->gfxfontlist, font);
+ font->id = strdup(id);
+ this->gfxfontlist = gfxfontlist_addfont(this->gfxfontlist, font);
device->addfont(device, font);
}
current_gfxfont = font;