1
0
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:
Lu Wang 2012-08-31 23:23:03 +08:00
parent 4e13bece0e
commit 5cf5a1c725

View File

@ -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"));