mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-07-05 09:38:40 +00:00
..
This commit is contained in:
parent
05680b25ff
commit
d1a5f8a3fe
|
@ -389,6 +389,13 @@ void HTMLRenderer::embed_font(const string & filepath, GfxFont * font, FontInfo
|
||||||
ctu->decRefCnt();
|
ctu->decRefCnt();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Step 3
|
||||||
|
*
|
||||||
|
* Generate the font as desired
|
||||||
|
*
|
||||||
|
* Reload to retrieve accurate ascent/descent <-- TODO: remove this
|
||||||
|
*/
|
||||||
{
|
{
|
||||||
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(),
|
||||||
|
@ -400,8 +407,6 @@ void HTMLRenderer::embed_font(const string & filepath, GfxFont * font, FontInfo
|
||||||
ffw_save((char*)fn);
|
ffw_save((char*)fn);
|
||||||
ffw_close();
|
ffw_close();
|
||||||
|
|
||||||
// get accurate ascent/descent
|
|
||||||
//TODO
|
|
||||||
ffw_load_font((char*)fn);
|
ffw_load_font((char*)fn);
|
||||||
ffw_metric(&info.ascent, &info.descent, &info.em_size);
|
ffw_metric(&info.ascent, &info.descent, &info.em_size);
|
||||||
ffw_save((char*)fn);
|
ffw_save((char*)fn);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user