Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Setting text in non-rectangular path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting text in non-rectangular path



On Mar 27, 2010, at 12:56 PM, Isaiah Beerbower wrote:

> Hello,
>
> I would like to know for sure whether or not CTFrame supports non-rectangular paths. I’ve successfully drawn text inside a rectangular path, but when I pass in, for example, a circular path it says that no characters will fit in it.
>
> Looking through the documentation, I have not seen anything to indicate that the path passed into CTFramesetterCreateFrame must be any particular shape, however all the examples use rectangles and there is no indication of the opposite. Does anybody know for sure?

In the header, in the documentation for the CGFramesetterCreateFrame routine you find:

	@param		path
				A CGPath object that specifies the shape which the frame will
				take on.  Currently accepts only rectangles.

Read the last sentence.

Scott

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Setting text in non-rectangular path (From: Isaiah Beerbower <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.