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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to