I mean in text coordinate system, text go from left to right.
"meanwhile", the ctm will flip everything horizontally.

So the result is char_dx is always positive, but dev_dx is always -char_dx
Does this make sense?


On Fri, Apr 5, 2013 at 11:53 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 ||
>
>  min/max x/y should be determined (again) after any transformations.
>
> What do you mean? Transformations can't occur partway through a string.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/coolwanglu/pdf2htmlEX/pull/114/files#r3675403>
> .
>