Re: NSFont to CGFontRef
Re: NSFont to CGFontRef
- Subject: Re: NSFont to CGFontRef
- From: Andy O'Meara <email@hidden>
- Date: Wed, 3 Feb 2010 13:01:36 -0600
> No, it'll just crash unless you set the minimum system requirement key in the info plist.
Sure, but in terms of supporting our 10.4 customers (which is a significant number for us), it seems like we're out of luck wrt to turning a NSFont* into a CGFontRef (or namely, creating a CGFontRef from standard attributes). No doubt that there's a twisty and windy way to create a CGFontRef from a font name and set of attribs, but I have been unsuccessful thus far with CGFontCreateCopyWithVariations() and I've been unable to find any sample code that does so (either in ADC or in google).
Oh well, but thanks for your thoughts and suggestions!
Andy
On Feb 3, 2010, at 12:10 PM, Nick Zitzmann wrote:
>
> On Feb 3, 2010, at 11:08 AM, Andy O'Meara wrote:
>
>> 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?
>
> No, it'll just crash unless you set the minimum system requirement key in the info plist.
>
> Nick Zitzmann
> <http://www.chronosnet.com/>
>
_______________________________________________
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