mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
debug info
This commit is contained in:
parent
6fa147924e
commit
09aa812460
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user