Skip navigation.
 
mlRe: Global Font Change
FROM : Kyle Sluder
DATE : Thu Jan 31 22:17:26 2008

On Jan 31, 2008 4:05 PM, Chris Schmitt <<email_removed>> wrote:
> How do I change the font that is used for all NSLabels, NSTextFields,
> etc..? Basically I want to make the default font smaller for all text
> within my application, not the menu bar or anything outside my
> application, just my views, and windows..  Is this done through
> skinning or is this a global property that can be set?


Neither.  When you toss an NSTextField into a window, for example, IB
creates a new NSTextField, which is archived into the nib.  Included
in this information is the font used to display the cell contents.
When your app loads the nib, the NSTextField is awoken with the
properties it was frozen with.  So there's no room in this model for
things like "global font preferences."  They simply wouldn't be used.

This is a Good Thing.  Otherwise, the appearance and necessary
dimensions of your controls would never be reproducible.

HTH,
--Kyle Sluder

Related mailsAuthorDate
mlGlobal Font Change Chris Schmitt Jan 31, 21:52
mlRe: Global Font Change Kyle Sluder Jan 31, 22:00
mlRe: Global Font Change Chris Schmitt Jan 31, 22:05
mlRe: Global Font Change j o a r Jan 31, 22:16
mlRe: Global Font Change Kyle Sluder Jan 31, 22:17
mlRe: Global Font Change Chris Schmitt Jan 31, 22:27
mlRe: Global Font Change John Stiles Jan 31, 22:31
mlRe: Global Font Change Jonathan Hess Jan 31, 22:34
mlRe: Global Font Change j o a r Jan 31, 22:34
mlRe: Global Font Change Chris Schmitt Feb 1, 00:03
mlRe: Global Font Change Uli Kusterer Feb 1, 00:19
mlRe: Global Font Change Rob Keniger Feb 1, 07:01