• 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: Getting the availably fonts of a font family
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the availably fonts of a font family


  • Subject: Re: Getting the availably fonts of a font family
  • From: Aki Inoue <email@hidden>
  • Date: Thu, 25 Apr 2002 17:51:32 -0700

-[NSFontManager availableMembersOfFontFamily:] is your solution.
It gives you back an array of all typefaces in the family.

Note each elements in the array is also an array.
The element array consists of (<font name>, <face name>, <weight>, <traits>).

Aki

On Thursday, April 25, 2002, at 05:24 PM, email@hidden wrote:

NSFontManager provides the availableFontFamilies method to get an array of all the font families, and availableFonts to get an array of all the fonts. I am looking for a way to get a list of the fonts in a given family. I have seen it done in programs where the font families are listed in a menu and the families' indivual fonts (bold, italic, etc.) in a submenu. Does anyone know how to do this?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Getting the availably fonts of a font family (From: email@hidden)

  • Prev by Date: Re: Wait / Busy Cursor
  • Next by Date: Re: References to classess
  • Previous by thread: Getting the availably fonts of a font family
  • Next by thread: Loading dylibs inside of a framework
  • Index(es):
    • Date
    • Thread