mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-10-06 12:01:39 +00:00
best solution so far, need more check of CID fonts
This commit is contained in:
parent
28eb708339
commit
f460476c0f
@ -202,8 +202,6 @@ void HTMLRenderer::install_embedded_font(GfxFont * font, const string & suffix,
|
|||||||
|
|
||||||
bool use_tounicode = ((suffix == ".ttf") || (param->always_apply_tounicode));
|
bool use_tounicode = ((suffix == ".ttf") || (param->always_apply_tounicode));
|
||||||
|
|
||||||
if(use_tounicode)
|
|
||||||
{
|
|
||||||
auto ctu = font->getToUnicode();
|
auto ctu = font->getToUnicode();
|
||||||
|
|
||||||
ofstream map_fout(tmp_dir / (fn + ".encoding"));
|
ofstream map_fout(tmp_dir / (fn + ".encoding"));
|
||||||
@ -246,7 +244,6 @@ void HTMLRenderer::install_embedded_font(GfxFont * font, const string & suffix,
|
|||||||
|
|
||||||
if(ctu)
|
if(ctu)
|
||||||
ctu->decRefCnt();
|
ctu->decRefCnt();
|
||||||
}
|
|
||||||
|
|
||||||
script_fout << format("Generate(%1%)") % ((param->single_html ? tmp_dir : dest_dir) / (fn+".ttf")) << endl;
|
script_fout << format("Generate(%1%)") % ((param->single_html ? tmp_dir : dest_dir) / (fn+".ttf")) << endl;
|
||||||
if(param->single_html)
|
if(param->single_html)
|
||||||
|
Loading…
Reference in New Issue
Block a user