Re: Get font name and size chosen
Re: Get font name and size chosen
- Subject: Re: Get font name and size chosen
- From: Lorenzo <email@hidden>
- Date: Wed, 23 Jan 2008 18:01:52 +0100
Hi,
Thank you. Very useful. I just need the name of the font and size to display
it on the undo menu item. I did it. Thanks.
Furthermore, do you know how to subclass the "change font shadow parameters"
in the Font Panel? I cannot figure out which API I have to subclass.
I mean, when you click and drag the controls on the FontPanel which change
the shadow of the selected text.
Best Regards
--
Lorenzo
email: email@hidden
> From: "I. Savant" <email@hidden>
> Date: Wed, 23 Jan 2008 09:44:33 -0500
> To: Lorenzo <email@hidden>
> Cc: Cocoa List <email@hidden>
> Subject: Re: Get font name and size chosen
>
>> 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?
>
> I suggest you give this document a thorough read:
>
> http://developer.apple.com/documentation/Cocoa/Conceptual/FontHandling/FontHan
> dling.html
>
> Also, read the NSFont API reference for -fontName ... "Returns the
> receiver's full font name, as used in PostScript language codeĀfor
> example, 'Times-Roman' or 'Helvetica-Oblique.'" ... is that really
> what you want or should you maybe read the descriptions of all the
> other methods NSFont has to offer and see if one of those suits you
> better?
>
> --
> I.S.
_______________________________________________
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