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