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?



Cool, I overlooked that. Looks like it would cover that topic. Still, I'm using mixed font style, color, etc, so rendering an NSAttributedString to an image and passing it to the quartz comp is working well for me.

Speaking of which, how would one check to see if an input port has a valid image on it or not? I'm setting the port to nil when I'm not using it, and it would be useful to check for that before trying to do stuff with it.

thanks

-eric

On Jul 7, 2006, at 12:29 pm, Troy Koelling wrote:

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>)
 >Re: wrapping text? (From: Troy Koelling <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.