Those are same thing. Suppose `x+dev_total_dx = 5`, `xMin=0` and `xMax=10`.

Now if `dev_dx=-100`. I think the code would go wrong


On Fri, Apr 5, 2013 at 10:51 PM, John Hewson <notifications@github.com>wrote:

> In src/HTMLRenderer/text.cc:
>
> >
> >          if(is_space && (param->space_as_offset))
> >          {
> >              // ignore horiz_scaling, as it's merged in CTM
> > -            text_line_buf->append_offset((dx1 * cur_font_size + cur_letter_space + cur_word_space) * draw_text_scale);
> > +            text_line_buf->append_offset((char_dx * state->getFontSize() + state->getCharSpace() + state->getWordSpace()) * draw_text_scale);
> > +        }
> > +        else if(x + dev_total_dx + dev_dx < xMin - EPS || x + dev_total_dx > xMax + EPS ||
>
> No, I'm testing if the character rectangle is entirely outside the
> clipping rectangle. This is not a test for intersection.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/coolwanglu/pdf2htmlEX/pull/114/files#r3674279>
> .
>