From 5b72899a80603d5aa5ff5cf876152bdaae994a35 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Sun, 7 Apr 2013 01:13:37 +0800 Subject: [PATCH] .. --- src/HTMLRenderer/state.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HTMLRenderer/state.cc b/src/HTMLRenderer/state.cc index 81b74e1..f9371ef 100644 --- a/src/HTMLRenderer/state.cc +++ b/src/HTMLRenderer/state.cc @@ -316,7 +316,7 @@ void HTMLRenderer::check_state_change(GfxState * state) // otherwise we merge the lines only when // - text are not shifted to the left too much // - text are not moved too high or too low - if((dx * old_draw_text_scale) >= -(old_html_state.font_info->ascent - old_html_state.font_info->descent) * old_html_state.font_size - EPS) + if((dx * old_draw_text_scale) >= -param.space_threshold * old_html_state.em_size() - EPS) { double oldymin = old_html_state.font_info->descent * old_html_state.font_size; double oldymax = old_html_state.font_info->ascent * old_html_state.font_size;