UseTags & wrap_text

The wrap text functions don't check if UseTags=TRUE. Doesn't this throws pdf_text_width() and pdf_GetNumFittingChars() calculations off leaving them in?

Stripping the tags, StripBoldItal() + strip color", would return a closer width calculation excluding the bold/italic font width differences. If each word is stripped in the text parameter sent to pdf_text_width() then the original word, including tags, could be appended to the line.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I'm having a similar

I'm having a similar problem, if I have the following two strings:

mmm mmm mmm mmm mmm mmm mmm mmm mmm mmm mmm mmm mm
wwww wwwww ww w www wwww w ww ww ww wwww ww www ww

both are 50 characters in length.

If I put both into a pdf document with the following code (where ch_string is the variable containing the characters):

RUN pdf_set_TextY("Spdf",480).
RUN pdf_Wrap_Text ("Spdf",ch_string,23,71,"left",OUTPUT lin_line).

Then it wraps the strings as follows (in different columns):

mmm mmm mmm mmm mmm mmm mmm mmm mmm mmm mmm mmm
mm
wwww wwwww ww w www wwww w ww ww ww wwww ww
www ww

Any ideas on how to fix it?


Excuse me

I'm sorry, I'm wrong place