Skip navigation.
 
mlRe: Custom text via Core Text in a layer.
FROM : Aki Inoue
DATE : Mon Nov 19 20:03:22 2007

> 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_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>

Related mailsAuthorDate
mlCustom text via Core Text in a layer. John Clayton Nov 19, 18:39
mlRe: Custom text via Core Text in a layer. John Harper Nov 19, 19:45
mlRe: Custom text via Core Text in a layer. John Clayton Nov 19, 19:46
mlRe: Custom text via Core Text in a layer. Aki Inoue Nov 19, 20:03
mlRe: Custom text via Core Text in a layer. John Clayton Nov 19, 23:29
mlRe: Custom text via Core Text in a layer. Aki Inoue Nov 26, 19:04