1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-03 08:38:39 +00:00

remove intermediate save for asc/des

This commit is contained in:
Lu Wang 2012-09-21 14:25:46 +08:00
parent 3b7d1609f6
commit 08e0918a4d
2 changed files with 0 additions and 20 deletions

2
TODO
View File

@ -1,5 +1,3 @@
remove intermediate save for asc/des
bug found in baidu(ubuntu...), bug_chn
precise link dest

View File

@ -385,24 +385,6 @@ void HTMLRenderer::embed_font(const string & filepath, GfxFont * font, FontInfo
}
}
if(0)
{
/*
* [Win|Typo|HHead][Ascent|Descent]
* Firefox & Chrome interprets the values in different ways
* Trying to unify them
*/
// Generate an intermediate ttf font in order to retrieve the metrics
// TODO: see if we can get the values without save/load
auto fn = str_fmt("%s/f%llx_.ttf", param->tmp_dir.c_str(), info.id);
add_tmp_file((char*)fn);
ffw_save((char*)fn);
ffw_close();
ffw_load_font((char*)fn);
ffw_metric(&info.ascent, &info.descent, &info.em_size);
}
{
auto fn = str_fmt("%s/f%llx%s",
(param->single_html ? param->tmp_dir : param->dest_dir).c_str(),