• 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
Get font name and size chosen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Get font name and size chosen


  • Subject: Get font name and size chosen
  • From: Lorenzo <email@hidden>
  • Date: Wed, 23 Jan 2008 15:29:24 +0100

I am subclassing
    - (void)changeFont:(id)sender
Any time the users makes a change on the font panel, this method gets called
properly. Then I detect the font name chosen by the user with:

   NSFont   *panelFont = [sender convertFont:[sender selectedFont]];
   NSString *fontName = [panelFont fontName];

I get a font name which is different than the font name shown on the Font
Panel. Also I don't know how to get the font size. So please how to get the
"same" name and style and size I can see on the FontPanel?


Best Regards
--
Lorenzo
email: email@hidden

_______________________________________________

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

  • Follow-Ups:
    • Re: Get font name and size chosen
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: [[NSView animator] setHidden:YES] doesn't fade?
  • Next by Date: Re: Get font name and size chosen
  • Previous by thread: drawing something across multiple NSWindow instances.
  • Next by thread: Re: Get font name and size chosen
  • Index(es):
    • Date
    • Thread