Re: NSFontManager Initialization
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