• 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
Re: How to implement font bigger/smaller buttons?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to implement font bigger/smaller buttons?


  • Subject: Re: How to implement font bigger/smaller buttons?
  • From: Jan Van Boghout <email@hidden>
  • Date: Mon, 28 Oct 2002 20:52:45 +0100

I'm aware of this method, but it would only change the font for things you type after pressing the button. What I need is the ability to make the selected text bigger too

I suspect this is relatively easy. NSFontManager has a method which
will probably do what you want:

- (NSFont *)convertFont:(NSFont *)fontObj toSize:(float)size;

Pass in the font your text currently uses, and the new size.

--- Jan Van Boghout <email@hidden> wrote:
How would one do this? Is there maybe some sample code available?

To see what I mean, try the toolbar items in Mail when composing a
new
message.

Has anybody ever done this?

Thanks,

Jan Van Boghout
_______________________________________________
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.
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/
_______________________________________________
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: How to implement font bigger/smaller buttons?
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Re: Fun with table column identifiers
  • Next by Date: RE: Fun with table column identifiers
  • Previous by thread: How to implement font bigger/smaller buttons?
  • Next by thread: Re: How to implement font bigger/smaller buttons?
  • Index(es):
    • Date
    • Thread