Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wrapping text?



There's actually width and height parameters you can set on the ImageWithString patch. This sets a bounding box for the text if non zero, so wrapping will occur at word boundaries (if possible). The default value of zero simply means automatic width and height, so the text doesn't wrap.

Horizontal and Vertical alignment are not inputs, but you can change them in the settings panel.

On Jul 6, 2006, at 9:44 PM, Eric Blanpied wrote:

Is there a way to dynamically wrap text to a rect of some kind? I can't seem to find a simple way to do this. I suppose one could count characters, find word breaks, and wrap it, but I'd rather not. Right now I'm having my app spit out an image of the text and passing that to the comp. It would be cool to have the control of NSAttributedString in a patch. "Image with Styled String". Has anyone done that?

-e
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (Quartzcomposer- email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/tkoelling% 40apple.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >wrapping text? (From: Eric Blanpied <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.