Re: Custom text via Core Text in a layer.
Re: Custom text via Core Text in a layer.
- Subject: Re: Custom text via Core Text in a layer.
- From: Aki Inoue <email@hidden>
- Date: Mon, 19 Nov 2007 11:03:22 -0800
Bad assumption??
Yes 8-).
CoreText is designed to be the base text layout engine for out platform.
And it's based on somewhat different graphics model from the Cocoa
Text System.
CT is mostly relying on the CG graphics state for specifying rendering
attributes whereas the Text System is taking more markup attribute
kind of approach.
So, even though some of the text attributes are toll-free bridged,
text attributes recognized by CF is subset of the Text System and
possibly stay that way.
In other words, if you need to use all text attributes supported by
the Text System, you should stay with the Text System.
You should have to go down to CT for very limited reasons (i.e.
writing your own text engine).
Aki
On 2007/11/19, at 10:46, John Clayton wrote:
I'm not - I just created a .rtf file in TextEdit, made some things
bold, some thing yellow, gave the whole text a background shadow -
and expected that this would then show up in core-text rendered
graphics as well.
Bad assumption??
On 19/11/2007, at 6:46 PM, j o a r wrote:
On Nov 19, 2007, at 9:39 AM, John Clayton wrote:
I'm using the following code to draw an attributed string into a
layer (my own CATextLayer), but the text *always* draws black - is
there something simple that I'm doing wrong? I am of course
assuming that the colour into in the attributed string would
determine how that content is being drawn.
Quick off-list question:
How certain are you that your attributes are set up correctly? Have
you verified in some non-CT layer context that they do the right
thing?
j o a r
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden