Skip to main content
Known Participant
August 20, 2010
Answered

Spaces on right aligned text

  • August 20, 2010
  • 1 reply
  • 835 views

Our users are trying to use spaces as padding for right aligned text but it isn't working.

I did a test with the same text in two different right aligned text holders, the second container contains the text that was in the first container as well as several non-breaking spaces at the end.  When I debug the results of StringTextLineFactory.createTextLines the widths of both text lines were the same.

This seems like it is a FTE issue since FTE has no concept of right aligned text I could see it just dropping off extra spaces at the end of the text but that is just a guess.

It also looks like RichEditableText does the same thing.  In this video i enter "asdf" then a bunch of spaces and it isn't until I enter another character that the space characters are recognized. http://screencast.com/t/NGMzZmNk

This topic has been closed for replies.
Correct answer

You are correct - spaces at the end of a line are ignored for most purposes. This is consistent with most text engines (TextField, InDesign, Word). Why not use paragraphEndIndent?

1 reply

Correct answer
August 20, 2010

You are correct - spaces at the end of a line are ignored for most purposes. This is consistent with most text engines (TextField, InDesign, Word). Why not use paragraphEndIndent?

Known Participant
August 20, 2010

We do have a control for using paddingEndIndent but users will be users and they wanted to use spaces.  I didn't realize that this functions the same way as the major text engines.

Thanks for the clarification.