• 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 font size managed without affecting the font? Please help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How font size managed without affecting the font? Please help (From: rethish <email@hidden>)

  • Prev by Date: Re: UTIs and type codes and extensions
  • Next by Date: Relaunch App (Quit, Relaunch If Quit)?
  • Previous by thread: How font size managed without affecting the font? Please help
  • Next by thread: Capture video from core animation (QC)
  • Index(es):
    • Date
    • Thread