FROM : Gordon Apple
DATE : Tue Mar 04 18:15:59 2008
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
DATE : Tue Mar 04 18:15:59 2008
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
| Related mails | Author | Date |
|---|---|---|
| Gordon Apple | Mar 2, 23:29 | |
| Aki Inoue | Mar 3, 20:56 | |
| Gordon Apple | Mar 3, 22:12 | |
| Aki Inoue | Mar 3, 23:01 | |
| Gordon Apple | Mar 4, 18:15 |






Cocoa mail archive

