Global Font Change

  • How do you set the global default font for your application?

    Thanks in advance
  • On Jan 31, 2008 3:52 PM, Chris Schmitt <cps...> wrote:
    > How do you set the global default font for your application?

    This question makes no sense whatsoever.  Please rephrase in a
    meaningful fashion.

    If you want to change the font used for the menu bar, titles of
    windows, etc., the answer is you don't.  That's not how things work in
    OS X.

    --Kyle Sluder
  • Sorry for the confusion...

    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?

    Thanks

    On Jan 31, 2008, at 4:00 PM, Kyle Sluder wrote:

    > On Jan 31, 2008 3:52 PM, Chris Schmitt <cps...> wrote:
    >> How do you set the global default font for your application?
    >
    > This question makes no sense whatsoever.  Please rephrase in a
    > meaningful fashion.
    >
    > If you want to change the font used for the menu bar, titles of
    > windows, etc., the answer is you don't.  That's not how things work in
    > OS X.
    >
    > --Kyle Sluder
  • On Jan 31, 2008, at 1:05 PM, Chris Schmitt 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?

    There is no global switch to get what you're asking for, and typically
    that's not what you want either (you might want to have *most* of your
    controls in one particular size, but very rarely all of them). You,
    the programmer or interface designer, will have to manually make sure
    that all controls in your interface is using the font size you want.

    You might want to look at the documentation for NSControlSize. This is
    a way to easily make controls appear at one of a predefined set of
    sizes. You can set this property from Interface Builder or in code. If
    you set it from code, you might also have to set the font size
    separately (I don't remember, and don't think, that it's updated
    automatically for you).

    j o a r
  • On Jan 31, 2008 4:05 PM, Chris Schmitt <cps...> 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
  • So if I wanted to change the font size of a label I would have to do
    programatically, or write my own sub class?  There is no way in IB to
    set the label to something like bold?

    I will check out the control size, that might help me out for what I
    am thinking.

    Thanks for all your help!!

    On Jan 31, 2008, at 4:16 PM, j o a r wrote:

    >
    > On Jan 31, 2008, at 1:05 PM, Chris Schmitt 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?
    >
    >
    > There is no global switch to get what you're asking for, and
    > typically that's not what you want either (you might want to have
    > *most* of your controls in one particular size, but very rarely all
    > of them). You, the programmer or interface designer, will have to
    > manually make sure that all controls in your interface is using the
    > font size you want.
    >
    > You might want to look at the documentation for NSControlSize. This
    > is a way to easily make controls appear at one of a predefined set
    > of sizes. You can set this property from Interface Builder or in
    > code. If you set it from code, you might also have to set the font
    > size separately (I don't remember, and don't think, that it's
    > updated automatically for you).
    >
    > j o a r
    >
    >
  • You need to experiment with IB some more before posting. You can
    definitely change the font of a label (and boldface is just a different
    font).

    Chris Schmitt wrote:
    > So if I wanted to change the font size of a label I would have to do
    > programatically, or write my own sub class?  There is no way in IB to
    > set the label to something like bold?
    >
    > I will check out the control size, that might help me out for what I
    > am thinking.
    >
    > Thanks for all your help!!
    >
    > On Jan 31, 2008, at 4:16 PM, j o a r wrote:
    >
    >>
    >> On Jan 31, 2008, at 1:05 PM, Chris Schmitt 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?
    >>
    >>
    >> There is no global switch to get what you're asking for, and
    >> typically that's not what you want either (you might want to have
    >> *most* of your controls in one particular size, but very rarely all
    >> of them). You, the programmer or interface designer, will have to
    >> manually make sure that all controls in your interface is using the
    >> font size you want.
    >>
    >> You might want to look at the documentation for NSControlSize. This
    >> is a way to easily make controls appear at one of a predefined set of
    >> sizes. You can set this property from Interface Builder or in code.
    >> If you set it from code, you might also have to set the font size
    >> separately (I don't remember, and don't think, that it's updated
    >> automatically for you).
    >>
    >> j o a r
    >>
    >>

  • On Jan 31, 2008, at 1:27 PM, Chris Schmitt wrote:

    > So if I wanted to change the font size of a label I would have to do
    > programatically, or write my own sub class?  There is no way in IB
    > to set the label to something like bold?

    I haven't been reading this thread, but you can change the font of any
    control with the font panel in Interface Builder.

    To make a label bold, add one to a document, select it, bring up the
    font panel, and change the font.

    Jon Hess

    >
    >
    > I will check out the control size, that might help me out for what I
    > am thinking.
    >
    > Thanks for all your help!!
    >
    > On Jan 31, 2008, at 4:16 PM, j o a r wrote:
    >
    >>
    >> On Jan 31, 2008, at 1:05 PM, Chris Schmitt 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?
    >>
    >>
    >> There is no global switch to get what you're asking for, and
    >> typically that's not what you want either (you might want to have
    >> *most* of your controls in one particular size, but very rarely all
    >> of them). You, the programmer or interface designer, will have to
    >> manually make sure that all controls in your interface is using the
    >> font size you want.
    >>
    >> You might want to look at the documentation for NSControlSize. This
    >> is a way to easily make controls appear at one of a predefined set
    >> of sizes. You can set this property from Interface Builder or in
    >> code. If you set it from code, you might also have to set the font
    >> size separately (I don't remember, and don't think, that it's
    >> updated automatically for you).
    >>
    >> j o a r
    >>
    >>

  • On Jan 31, 2008, at 1:27 PM, Chris Schmitt wrote:

    > So if I wanted to change the font size of a label I would have to do
    > programatically, or write my own sub class?  There is no way in IB
    > to set the label to something like bold?

    I think my last comment was a bit unclear, so I'll try again: If you
    set the control size in IB, the font size is updated to match. I'm
    just not sure if the same thing holds true if you change the control
    size programmatically.

    j o a r
  • Thanks to all for posting responses.  I was looking for a way to set a
    default type so subviews and dynamically created elements would just
    pick up the font choice.  That way I didn't have to set it for each
    individual element.  But I can do the same thing with a default or a
    helper object to setup the defaults.

    Thanks again!

    On Jan 31, 2008, at 4:34 PM, Jonathan Hess wrote:

    >
    > On Jan 31, 2008, at 1:27 PM, Chris Schmitt wrote:
    >
    >> So if I wanted to change the font size of a label I would have to
    >> do programatically, or write my own sub class?  There is no way in
    >> IB to set the label to something like bold?
    >
    > I haven't been reading this thread, but you can change the font of
    > any control with the font panel in Interface Builder.
    >
    > To make a label bold, add one to a document, select it, bring up the
    > font panel, and change the font.
    >
    > Jon Hess
    >
    >>
    >>
    >> I will check out the control size, that might help me out for what
    >> I am thinking.
    >>
    >> Thanks for all your help!!
    >>
    >> On Jan 31, 2008, at 4:16 PM, j o a r wrote:
    >>
    >>>
    >>> On Jan 31, 2008, at 1:05 PM, Chris Schmitt 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?
    >>>
    >>>
    >>> There is no global switch to get what you're asking for, and
    >>> typically that's not what you want either (you might want to have
    >>> *most* of your controls in one particular size, but very rarely
    >>> all of them). You, the programmer or interface designer, will have
    >>> to manually make sure that all controls in your interface is using
    >>> the font size you want.
    >>>
    >>> You might want to look at the documentation for NSControlSize.
    >>> This is a way to easily make controls appear at one of a
    >>> predefined set of sizes. You can set this property from Interface
    >>> Builder or in code. If you set it from code, you might also have
    >>> to set the font size separately (I don't remember, and don't
    >>> think, that it's updated automatically for you).
    >>>
    >>> j o a r
    >>>
    >>>

    >
  • On 01.02.2008, at 00:03, Chris Schmitt wrote:
    > That way I didn't have to set it for each individual element.  But I
    > can do the same thing with a default or a helper object to setup the
    > defaults.

      In IB3 you can drag your own items into the library (click and hold
    for a while, then it'll "pop out" and you can drag it into the
    Library). So you only need to set up each control type once, with
    whatever font you want, then drag them into the library, and from then
    on you can drag them out from there and get a new copy with your
    predefined settings. You can even group all those controls into your
    own category so you can more easily find them.

    Cheers,
    -- M. Uli Kusterer
    "The Witnesses of TeachText are everywhere..."
    http://www.zathras.de
  • On 01/02/2008, at 9:19 AM, Uli Kusterer wrote:

    > In IB3 you can drag your own items into the library (click and hold
    > for a while, then it'll "pop out" and you can drag it into the
    > Library). So you only need to set up each control type once, with
    > whatever font you want, then drag them into the library, and from
    > then on you can drag them out from there and get a new copy with
    > your predefined settings. You can even group all those controls into
    > your own category so you can more easily find them.

    You can also just hold down the option key before you click and drag
    the items instead of clicking and holding.

    --
    Rob Keniger
previous month january 2008 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today