Re: Fonts that are always there
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