`char_dx` is in the code, which is the width of a char stored in the Font,
the value is in the Text coordinate system.

Later this value will transformed by text_tm and ctm in turn.

see
https://github.com/jahewson/pdf2htmlEX/blob/36a0ceb831c30e00f702be5d46734aa00d074d01/src/HTMLRenderer/text.cc#L66

and
https://github.com/jahewson/pdf2htmlEX/blob/36a0ceb831c30e00f702be5d46734aa00d074d01/src/HTMLRenderer/text.cc#L104-L106


On Sat, Apr 6, 2013 at 12:00 AM, 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 ||
>
> What is char_dx?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/coolwanglu/pdf2htmlEX/pull/114/files#r3675493>
> .
>