Forum How do I...?

Count word breaks in justified lines

timtribe
Hi,

I have noticed that with the text-align css property set to justify, the corresponding generated TEXT boxes obtained via the boxTracking API have the spaces stripped from the string reported by the box's .text property.

I can see why this might be (the word spaces vary their widths, so I guess need to be replaced by some other structure). But, is there, or can there be, any way to find out how many such 'spaces' there are on a line (e.g. a box property called "wordBreakCount")?

Thanks for your awesome software!
howcome
Yes, this a known limitation of the Boxtracking API. I hope it can be fixed. A workaround is to turn off justification, look for word breaks, and then turn it back on. But this is cumbersome.
timtribe
Fair enough, thanks.