Re: How to implement font bigger/smaller buttons?
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.