mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
remove intermediate save for asc/des
This commit is contained in:
parent
3b7d1609f6
commit
08e0918a4d
2
TODO
2
TODO
@ -1,5 +1,3 @@
|
|||||||
remove intermediate save for asc/des
|
|
||||||
|
|
||||||
bug found in baidu(ubuntu...), bug_chn
|
bug found in baidu(ubuntu...), bug_chn
|
||||||
|
|
||||||
precise link dest
|
precise link dest
|
||||||
|
@ -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",
|
auto fn = str_fmt("%s/f%llx%s",
|
||||||
(param->single_html ? param->tmp_dir : param->dest_dir).c_str(),
|
(param->single_html ? param->tmp_dir : param->dest_dir).c_str(),
|
||||||
|
Loading…
Reference in New Issue
Block a user