• 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: How to get bold and plain fonts?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get bold and plain fonts?


  • Subject: Re: How to get bold and plain fonts?
  • From: Graham Cox <email@hidden>
  • Date: Sun, 31 May 2015 13:55:10 +1000

> On 31 May 2015, at 1:44 pm, Kyle Sluder <email@hidden> wrote:
>
> Here, you're asking for "all fonts that consider themselves to be both
> bold and unbold". This set is going to be empty (unless you have a
> particularly broken font installed).


Yeah, I just realised that though of course you’re adding trait masks together with OR, the value is interpreted as AND, so A &~A = 0. Seems as if there’s no way to express what I want with this. It’s a terrible API anyway.

> If you want to query for fonts with certain traits, you're much better
> off using NSFontDescriptor.

I’ll look at that as a better alternative.

> On 31 May 2015, at 1:27 pm, Roland King <email@hidden> wrote:
>
> A quick test (in Swift no less) suggests to me that this function just doesn’t work (TM).


Looks that way :(

Thanks both.

—Graham




_______________________________________________

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: 
 >How to get bold and plain fonts? (From: Graham Cox <email@hidden>)
 >Re: How to get bold and plain fonts? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: How to get bold and plain fonts?
  • Next by Date: [PSA] OSStatus.com — Error code lookup
  • Previous by thread: Re: How to get bold and plain fonts?
  • Next by thread: Re: How to get bold and plain fonts?
  • Index(es):
    • Date
    • Thread