1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

dirty fix:decompose ligatures when tounicode is not used

This commit is contained in:
Lu Wang 2012-09-28 17:53:36 +08:00
parent 6a4c0856a7
commit f2af4be094

View File

@ -522,7 +522,7 @@ void HTMLRenderer::drawString(GfxState * state, GooString * s)
}
else
{
if((param->decompose_ligature) && all_of(u, u+uLen, isLegalUnicode))
if((param->decompose_ligature) && (uLen > 1) && all_of(u, u+uLen, isLegalUnicode))
{
line_buf.append_unicodes(u, uLen);
}