1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00

debug info

This commit is contained in:
Lu Wang 2012-09-27 12:30:11 +08:00
parent 6fa147924e
commit 09aa812460
2 changed files with 11 additions and 5 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
pdf2htmlex (0.5-1~git201209270317r6fa14-0ubuntu1) precise; urgency=low
* Regularly re-packing.
-- WANG Lu <coolwanglu@gmail.com> Thu, 27 Sep 2012 03:17:02 +0800
pdf2htmlex (0.5-1~git201209261622r170a0-0ubuntu1) precise; urgency=low
* new version

View File

@ -161,6 +161,11 @@ string HTMLRenderer::dump_embedded_font (GfxFont * font, long long fn_id)
void HTMLRenderer::embed_font(const string & filepath, GfxFont * font, FontInfo & info, bool get_metric_only)
{
if(param->debug)
{
cerr << "Embed font: " << filepath << " " << info.id << endl;
}
ffw_load_font(filepath.c_str());
int * code2GID = nullptr;
int code2GID_len = 0;
@ -183,11 +188,6 @@ void HTMLRenderer::embed_font(const string & filepath, GfxFont * font, FontInfo
info.em_size = ffw_get_em_size();
if(param->debug)
{
cerr << "Ascent: " << info.ascent << " Descent: " << info.descent << endl;
}
if(get_metric_only)
return;