Adding Spaces to the end of a Dynamically Generated Image

I'm dynamically creating text images then searching for them.

I would like to create an image with text like this: "Feedback "

The spaces are important, however when the image is generated it removes the white space at the end of the image.

How do I force it to create an image exactly how I want it - with the spaces?

Comments

  • JonathanOSXJonathanOSX ForumAdmin admin
    In addition to passing spaces at the end of the string you will need to specify that Eggplant shouldn't "trim" the image that comes back.

    You can do that by including the property (Trim:NO) in your text property list.

    A similar feature to point out is that with any image you can also specify a ClipRectangle property. That property is a subrectangle of the image that you want to use.

    Hope that helps!
Sign In or Register to comment.