1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-02 16:25:41 +00:00

show font names in debug messages

This commit is contained in:
Lu Wang 2013-07-06 09:16:16 +08:00
parent ff7469a521
commit 136991135d

View File

@ -206,7 +206,7 @@ void HTMLRenderer::embed_font(const string & filepath, GfxFont * font, FontInfo
if(param.debug)
{
cerr << "Em size: " << info.em_size << endl;
cerr << "em size: " << info.em_size << endl;
}
info.space_width = 0;
@ -624,7 +624,10 @@ const FontInfo * HTMLRenderer::install_font(GfxFont * font)
if(param.debug)
{
cerr << "Install font: (" << (font->getID()->num) << ' ' << (font->getID()->gen) << ") -> " << "f" << hex << new_fn_id << dec << endl;
cerr << "Install font " << hex << new_fn_id << dec
<< ": (" << (font->getID()->num) << ' ' << (font->getID()->gen) << ") "
<< (font->getName() ? font->getName()->getCString() : "")
<< endl;
}
if(font->getType() == fontType3) {