Re: How font size managed without affecting the font? Please help
Re: How font size managed without affecting the font? Please help
- Subject: Re: How font size managed without affecting the font? Please help
- From: Benjamin Stiglitz <email@hidden>
- Date: Wed, 14 Jan 2009 09:51:26 -0500
- Mail-followup-to: email@hidden
> I use this code to change the fontsize:
>
> NSFont *font1 = [NSFont fontWithName:[pop1 titleOfSelectedItem] size:[[pop2
> titleOfSelectedItem] doubleValue]];
In the second popup’s action method, you should be invoking
-[NSFontManager convertFont:toSize:] to convert the fonts to the right
size. (And, in the first popup, -[NSFontManager convertFont:toFace:].)
<http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/ApplicationKit/Classes/NSFontManager_Class/Reference/Reference.html#//apple_ref/occ/instm/NSFontManager/convertFont:toSize:>
-Ben
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden