On Feb 2, 2010, at 9:00 PM, Nick Zitzmann wrote:

> 
> On Feb 2, 2010, at 10:26 AM, Andy O'Meara wrote:
> 
>> Given an NSFont object how can I extract or create a CGFontRef from it to 
>> use directly with CoreGraphics?
> 
> You're close. Starting in (I think) Leopard, NSFont and CTFontRef (not 
> CGFontRef) are toll-free bridged, so you should be able to use 
> CTFontCopyGraphicsFont() to get a CGFontRef from an NSFont.
> 


Thanks for the response.

Phew, ok so I'm not going completely crazy then about thinking it's toll-free 
bridged.  :)  

My concern with CoreText is that it rules out 10.4 as I understand it, so 
anyone loading the app under 10.4 will see a message saying that the app can't 
be run, no?

Thanks,
Andy_______________________________________________

Cocoa-dev mailing list ([email protected])

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/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to