• 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
Changing font size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing font size


  • Subject: Changing font size
  • From: John Timmer <email@hidden>
  • Date: Thu, 11 Dec 2003 08:21:08 -0500

I'd like to have a single base font that's used to draw strings at different
sizes, depending on context. As such, it seems simplest to save a single
font in user defaults, and resize that according to where I need it.

The problem is that there seems to be no straightforward way to go about
doing this. The only way I can figure is to get an NSFontDescriptor, pull
the size out of that, change it, and then recreate a new font using the
different size. It all seems seriously inefficient and complicated, and I
know that most things done with Cocoa aren't like that, so I assume I'm
missing something.

Any advice?

JT
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Changing font size
      • From: John Stiles <email@hidden>
    • Re: Changing font size
      • From: Douglas Davidson <email@hidden>
    • Re: Changing font size
      • From: Alastair Houghton <email@hidden>
    • Re: Changing font size
      • From: Robert Cerny <email@hidden>
  • Prev by Date: Re: Capturing slider movement in NSSlider
  • Next by Date: Re: Strange Error: "NSApplication Creating more than one Application"
  • Previous by thread: Re: Acknowledging a successful drop operation
  • Next by thread: Re: Changing font size
  • Index(es):
    • Date
    • Thread