• 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: NSFont to CGFontRef
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSFont to CGFontRef (From: Andy O'Meara <email@hidden>)
 >Re: NSFont to CGFontRef (From: Nick Zitzmann <email@hidden>)
 >Re: NSFont to CGFontRef (From: Andy O'Meara <email@hidden>)
 >Re: NSFont to CGFontRef (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: what is the struct of SecKeychainItemRef?
  • Next by Date: Re: Multithread communication
  • Previous by thread: Re: NSFont to CGFontRef
  • Next by thread: NSFont to CGFontRef
  • Index(es):
    • Date
    • Thread