• 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: NSFontManager Initialization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFontManager Initialization


  • Subject: Re: NSFontManager Initialization
  • From: Gordon Apple <email@hidden>
  • Date: Tue, 04 Mar 2008 11:15:59 -0600

    Therein lies the problem.  When the user clicks the text tool and clicks
a position on the view, I pop a sheet to enter the string and where the the
font panel can be launched to set font and size.  When the sheet is closed,
the Bezier is created and the string appears as a Bezier shape object.
There is no font to convert.  I just want the font and size that the user
selected in the panel.

    Side comment:  The machinations that one has to go through to get the
Bezier of the text is nothing short of ridiculous.  If it weren't for the
Speedometer code, I would have never figured it out.  There needs to be a
better way to get an array of glyphs than the
subclass/method-parameter-intercept techniques in Speedometer.  I'm going to
put in an enhancement request.

> The standard idiom here is to implement -changeFont: method that
> receives action messages whenever user changes font selection.
> In the method, you can call -convertFont: to query the user selection.
> The result has to be kept in your object.
> http://developer.apple.com/documentation/Cocoa/Conceptual/FontPanel/Tasks/Usin
> gFontPanel.html#/
> /apple_ref/doc/uid/20000836
>
> Aki

_______________________________________________

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

  • Prev by Date: Re: Triggering GUI login session from daemon? And reboot.
  • Next by Date: NSString from wstring
  • Previous by thread: Re: NSFontManager Initialization
  • Next by thread: Render an animation in a bitmap file (CARenderer)
  • Index(es):
    • Date
    • Thread