Re: ATSApplicationFontsPath "just doesn't work" Was: Can I add my own chars...?
Re: ATSApplicationFontsPath "just doesn't work" Was: Can I add my own chars...?
- Subject: Re: ATSApplicationFontsPath "just doesn't work" Was: Can I add my own chars...?
- From: Kyle Sluder <email@hidden>
- Date: Thu, 8 Apr 2010 16:27:18 -0700
On Thu, Apr 8, 2010 at 4:05 PM, Jerry Krinock <email@hidden> wrote:
> Well, because a couple weeks ago you said that there was a way to do this...
But the plist key you mentioned is documented to activate a font for a
process, thus making it usable in your application. It has nothing to
do with font cascades.
> And I searched far and wide for how to "insert that font into the cascade list", but this was the closest thing I could find. Do you know how to "insert that font into the cascade list"?
The code Gerriet provided is directly related to what you want to do.
It creates a font descriptor with the appropriate cascade list and
then creates a font from that descriptor. You would then assign that
font to the text view in which you want your special characters to
appear.
Since Core Text is really where this magic happens (Core Text
underlies the Cocoa Text System), you will want to read the Core Text
Programming Guide, specifically the third paragraph of the Fonts
section in the Core Text Overview:
http://developer.apple.com/mac/library/documentation/Carbon/Conceptual/CoreText_Programming/Overview/Overview.html
--Kyle Sluder
_______________________________________________
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