• 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: Drawing text like Lion's Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing text like Lion's Mail


  • Subject: Re: Drawing text like Lion's Mail
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Mon, 08 Aug 2011 17:16:42 +0200

I think you can create a CGPath from some text using CTFrameGetPath().
Once you get the path, you can do whatever you want (clipping, shadow, gradient, …).

Le 8 août 2011 à 02:22, Andre Masse a écrit :

> Interesting. Not sure if could be possible to convert the text to an image, apply a gradient and use one of the copy method of NSImage. I needed a break from coding data migration, hence the pause trying this. Now, I'm back to the boring part ;-)
>
> Looks like your image didn't pass the list. Feel free to email it to me directly.
>
> Thanks,
>
> Andre Masse
>
>
> On 07/08/2011, at 14:12 , Siegfried wrote:
>
>>
>> On 07/08/2011, at 10:52, Andre Masse wrote:
>>
>>> For those interested, Matt and Kyle were right. Helvetica Neue Bold 20pts. All my attempts to replicate the shadow have failed though. I'm using 85% white and it's good enough for me.
>>>
>>
>> The shadow is just an "inner shadow". The problem is that I have no idea on how to create an inner shadow in Cocoa. The obvious technique is to apply a shadow on a white layer that has holes in form of letters. But I also have no idea on how to do such intersection.
>>
>> See the attached image and tell me if you like it. By the way, let's see if you find which one is the original :-)



-- Jean-Daniel




_______________________________________________

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: Drawing text like Lion's Mail
      • From: David Duncan <email@hidden>
    • Re: Drawing text like Lion's Mail
      • From: Siegfried <email@hidden>
References: 
 >Drawing text like Lion's Mail (From: Andre Masse <email@hidden>)
 >Re: Drawing text like Lion's Mail (From: Jens Alfke <email@hidden>)
 >Re: Drawing text like Lion's Mail (From: Andre Masse <email@hidden>)
 >Re: Drawing text like Lion's Mail (From: Thomas Davie <email@hidden>)
 >Re: Drawing text like Lion's Mail (From: Andre Masse <email@hidden>)
 >Re: Drawing text like Lion's Mail (From: Durango <email@hidden>)
 >Re: Drawing text like Lion's Mail (From: Andre Masse <email@hidden>)
 >Re: Drawing text like Lion's Mail (From: Siegfried <email@hidden>)
 >Re: Drawing text like Lion's Mail (From: Andre Masse <email@hidden>)

  • Prev by Date: Re: CFURLWriteDataAndPropertiesToResource as root?
  • Next by Date: Re: Drawing text like Lion's Mail
  • Previous by thread: Re: Drawing text like Lion's Mail
  • Next by thread: Re: Drawing text like Lion's Mail
  • Index(es):
    • Date
    • Thread