mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
should get the mapping without ToUnicode, instead of disabling it
This commit is contained in:
parent
3506805092
commit
d920cbdc83
@ -135,9 +135,9 @@ void HTMLRenderer::install_embedded_font(GfxFont * font, const string & suffix,
|
||||
|
||||
if(!font->isCIDFont())
|
||||
{
|
||||
maxcode = 0xff;
|
||||
if(suffix == ".ttf")
|
||||
{
|
||||
maxcode = 0xff;
|
||||
script_fout << "Reencode(\"original\")" << endl;
|
||||
int buflen;
|
||||
char * buf = nullptr;
|
||||
@ -155,8 +155,6 @@ void HTMLRenderer::install_embedded_font(GfxFont * font, const string & suffix,
|
||||
}
|
||||
else
|
||||
{
|
||||
// don't reencode non-ttf 8bit fonts with ToUnicode
|
||||
maxcode = 0;
|
||||
script_fout << "Reencode(\"unicode\")" << endl;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user