• 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: Fonts that are always there
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fonts that are always there


  • Subject: Re: Fonts that are always there
  • From: "I. Savant" <email@hidden>
  • Date: Thu, 3 Sep 2009 09:07:10 -0400

On Sep 3, 2009, at 6:57 AM, Gabriel Zachmann wrote:

Does anyone know which fonts are always there on every Mac OS X 10.5 system?
(besides the base 14 fonts from Adobe)


Or is there somewhere a list?


Do you really want a list of fonts or do you mean to find a safe, system-provided font? If you're looking for a font that is always there (a system font), you should ask the system. There are these NSFont methods:

+systemFontOfSize:
+boldSystemFontOfSize:
+userFontOfSize:
+userFixedPitchFontOfSize:

There's also +label... +controlContent... +menu... +menuBar... +message... +palette... +titleBar... +toolTips...

These are guaranteed to yield "a font" in the desired category. This is the "safe fallback" if you prefer a named font but it's unavailable (you *are* checking availability and handling the negative, right?).

IMO, if you're allowing the selection of fonts such that you need to be able to fall back to a system font, the default should be a system font anyway.

(Of course, I should always have a second alternative.)

No, you should fall back on the system as mentioned above. Always.

--
I.S.


_______________________________________________

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


  • Follow-Ups:
    • Re: Fonts that are always there
      • From: Jens Alfke <email@hidden>
References: 
 >Fonts that are always there (From: Gabriel Zachmann <email@hidden>)

  • Prev by Date: [iphone] ebook
  • Next by Date: Re: [iphone] ebook
  • Previous by thread: Fonts that are always there
  • Next by thread: Re: Fonts that are always there
  • Index(es):
    • Date
    • Thread