mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
fix for rise
This commit is contained in:
parent
54c346fb22
commit
fefd307016
@ -257,7 +257,7 @@ void HTMLRenderer::check_state_change(GfxState * state)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// draw_text_tm, draw_text_scale
|
// draw_text_tm, draw_text_scale
|
||||||
// depends: font size & ctm & text_ctm & hori scale
|
// depends: font size & ctm & text_ctm & hori scale & rise
|
||||||
if(need_rescale_font)
|
if(need_rescale_font)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
@ -499,7 +499,9 @@ void HTMLRenderer::prepare_text_line(GfxState * state)
|
|||||||
if(new_line_state >= NLS_NEWLINE)
|
if(new_line_state >= NLS_NEWLINE)
|
||||||
{
|
{
|
||||||
// update position such that they will be recorded by text_line_buf
|
// update position such that they will be recorded by text_line_buf
|
||||||
state->transform(state->getCurX(), state->getCurY(), &cur_line_state.x, &cur_line_state.y);
|
double rise_x, rise_y;
|
||||||
|
state->textTransformDelta(0, state->getRise(), &rise_x, &rise_y);
|
||||||
|
state->transform(state->getCurX() + rise_x, state->getCurY() + rise_y, &cur_line_state.x, &cur_line_state.y);
|
||||||
html_text_page.open_new_line(cur_line_state);
|
html_text_page.open_new_line(cur_line_state);
|
||||||
|
|
||||||
cur_text_state.vertical_align = 0;
|
cur_text_state.vertical_align = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user