Re: Help in Getting NSFontFamilyClass
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