Using FormattedTextArea, two words separated only by a dash (U+002D), occurring at end of line, result in a line break before the first word instead of between the dash and the second word, even if the first word plus the dash would fit on the first line.
Using TextArea, the break occurs as expected, between the dash and the second word.
This can be seen in the DynamicPDF examples. For FormattedTextArea, edit text/FormattedText.txt. On the second line, change "your websites" to "your-websites"; then run FormattedTextContinuation.java. For TextArea, run TimeMachine.java and look on page 3 for "Four-Dimensional".
Is there a way to use FormattedTextArea so that dashes automatically break at end of line? I've tried various Unicode dashes to no avail. I can force a break by inserting a space, but I'd prefer not to have to programmatically determine which dashes will cause undesirable line breaks.
thanks
Jay Dunning