Skip to main content
Inspiring
June 19, 2010
Answered

How to remove padding from TextFlow?

  • June 19, 2010
  • 1 reply
  • 876 views

Hi,

I'm rendering a textflow using s Sprite. I want to remove the padding, so the text uses all available space. How can I do it?

This is a screenshot showing the text selected and the padding (left, right, top and bottom.).

I tried this with no result:

<TextFlow xmlns='http://ns.adobe.com/textLayout/2008'

fontSize='16' textIndent='0' paragraphSpaceAfter='0'

paddingTop='0'

paddingBottom='0'

paddingLeft='0'

paddingRight='0' ......

Any ideas?

This topic has been closed for replies.
Correct answer robin_briggs

If you are using Flex, it has its own settings which may be getting applied. Otherwise, it seems to me that what you are doing should work. I would suggest checking the padding values on the controller itself, which would override what's on the TextFlow. If those are not set, look into what you are using to stroke the controller bounds and make sure it matches the sprite.

- robin

1 reply

markerline
Inspiring
June 19, 2010

I don't know anything about this program at all but as someone who has worked with text in Illustrator it looks as though there

should be a setting for FULL justification.  In your rendered image the text all has the same spacing between words.  What you want is the last line to change its spacing between words (can't remember if that's called tracking or kerning) and possibly the spacing between letters (again tracking or kerning) so that the two edges are met by text as it is in the lines above the last line.

robin_briggsCorrect answer
Adobe Employee
June 21, 2010

If you are using Flex, it has its own settings which may be getting applied. Otherwise, it seems to me that what you are doing should work. I would suggest checking the padding values on the controller itself, which would override what's on the TextFlow. If those are not set, look into what you are using to stroke the controller bounds and make sure it matches the sprite.

- robin

oscar7878Author
Inspiring
June 21, 2010

Thanks Robin,

The controller was overriding the textflow.