• 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: Help in Getting NSFontFamilyClass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help in Getting NSFontFamilyClass


  • Subject: Re: Help in Getting NSFontFamilyClass
  • From: Aki Inoue <email@hidden>
  • Date: Wed, 7 Jun 2006 23:15:07 -0700

Sheen,

NSFontSymbolicTraits is only accessible from NSFontDescriptor.

You could do:

NSFontDescriptor *fontDescriptor = [NSFontDescriptor fontDescriptorWithFontAttributes:[NSDictionary dictionaryWithObject:@"Helvetica" forKey:NSFontFamilyAttribute]];
NSArray *fontDescriptors = [fontDescriptor matchingFontDescriptorsWithMandatoryKeys:nil]; // query normalized instances


Then, send -symbolicTraits to each instances.

This is pretty match equivalent of:

NSArray *faces = [[NSFontManager sharedFontManager] availableMembersOfFontFamily:@"Helvetica"];

then, the 3rd value in each face array.

Aki

Hi,

How can I get NSFontFamilyClass info from NSFontSymbolicTraits (NSFontManager)?.How can i iterate
that info via NSFontFamilyClassMask?.
Any sample code available for this.


Waiting for  response.

                                Sheen


__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Help in Getting NSFontFamilyClass (From: sheen mac <email@hidden>)

  • Prev by Date: Localizing NSString Literals
  • Next by Date: Re: Please advise on memory handling
  • Previous by thread: Help in Getting NSFontFamilyClass
  • Next by thread: Localizing NSString Literals
  • Index(es):
    • Date
    • Thread