mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
re-apply "fix rise with optimize-text(9c0b2a8a
)" after rebase
This commit is contained in:
parent
25d53ba0d1
commit
24b5eeb1e5
@ -80,7 +80,7 @@ void HTMLRenderer::drawString(GfxState * state, GooString * s)
|
|||||||
{
|
{
|
||||||
cerr << "TODO: non-zero origins" << endl;
|
cerr << "TODO: non-zero origins" << endl;
|
||||||
}
|
}
|
||||||
ddx = (ax * cur_font_size + cur_letter_space) * cur_horiz_scaling;
|
ddx = ax * cur_font_size + cur_letter_space;
|
||||||
ddy = ay * cur_font_size;
|
ddy = ay * cur_font_size;
|
||||||
tracer.draw_char(state, dx, dy, ax, ay);
|
tracer.draw_char(state, dx, dy, ax, ay);
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ void HTMLRenderer::drawString(GfxState * state, GooString * s)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dx += ddx;
|
dx += ddx * cur_horiz_scaling;
|
||||||
dy += ddy;
|
dy += ddy;
|
||||||
if (is_space)
|
if (is_space)
|
||||||
dx += cur_word_space * cur_horiz_scaling;
|
dx += cur_word_space * cur_horiz_scaling;
|
||||||
|
Loading…
Reference in New Issue
Block a user