mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-07-05 17:48:38 +00:00
don't decompose ligature when tounicode map is not used, need more fix laster
This commit is contained in:
parent
6a4c0856a7
commit
10c55cffcb
|
@ -521,6 +521,8 @@ void HTMLRenderer::drawString(GfxState * state, GooString * s)
|
|||
line_buf.append_offset((dx1 * cur_font_size + cur_letter_space + cur_word_space) * draw_scale);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(cur_font_info->use_tounicode)
|
||||
{
|
||||
if((param->decompose_ligature) && all_of(u, u+uLen, isLegalUnicode))
|
||||
{
|
||||
|
@ -528,7 +530,13 @@ void HTMLRenderer::drawString(GfxState * state, GooString * s)
|
|||
}
|
||||
else
|
||||
{
|
||||
Unicode uu = (cur_font_info->use_tounicode ? check_unicode(u, uLen, code, font) : unicode_from_font(code, font));
|
||||
Unicode uu = check_unicode(u, uLen, code, font);
|
||||
line_buf.append_unicodes(&uu, 1);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Unicode uu = unicode_from_font(code, font);
|
||||
line_buf.append_unicodes(&uu, 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user