mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
fix use_to_unicode
This commit is contained in:
parent
4e13bece0e
commit
5cf5a1c725
@ -172,11 +172,9 @@ void HTMLRenderer::embed_font(const path & filepath, GfxFont * font, FontInfo &
|
||||
|
||||
Gfx8BitFont * font_8bit = nullptr;
|
||||
|
||||
if(get_metric_only)
|
||||
{
|
||||
info.use_tounicode = false;
|
||||
}
|
||||
else
|
||||
info.use_tounicode = ((suffix == ".ttf") || (font->isCIDFont()) || (param->always_apply_tounicode));
|
||||
|
||||
if(!get_metric_only)
|
||||
{
|
||||
/*
|
||||
* Step 1
|
||||
@ -259,8 +257,6 @@ void HTMLRenderer::embed_font(const path & filepath, GfxFont * font, FontInfo &
|
||||
*
|
||||
*/
|
||||
|
||||
info.use_tounicode = ((suffix == ".ttf") || (font->isCIDFont()) || (param->always_apply_tounicode));
|
||||
|
||||
auto ctu = font->getToUnicode();
|
||||
|
||||
ofstream map_fout(tmp_dir / (fn + ".encoding"));
|
||||
|
Loading…
Reference in New Issue
Block a user