• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom text via Core Text in a layer.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom text via Core Text in a layer.


  • Subject: Re: Custom text via Core Text in a layer.
  • From: John Clayton <email@hidden>
  • Date: Mon, 19 Nov 2007 19:46:53 +0100

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


  • Follow-Ups:
    • Re: Custom text via Core Text in a layer.
      • From: Aki Inoue <email@hidden>
References: 
 >Custom text via Core Text in a layer. (From: John Clayton <email@hidden>)

  • Prev by Date: Re: Custom text via Core Text in a layer.
  • Next by Date: Re: CTFrame and drawing text + layers.
  • Previous by thread: Re: Custom text via Core Text in a layer.
  • Next by thread: Re: Custom text via Core Text in a layer.
  • Index(es):
    • Date
    • Thread