Re: Can I add my own characters to strings in text fields?
Re: Can I add my own characters to strings in text fields?
- Subject: Re: Can I add my own characters to strings in text fields?
- From: Jerry Krinock <email@hidden>
- Date: Wed, 24 Mar 2010 13:35:44 -0700
On 2010 Mar 24, at 12:14, Mike Abdullah wrote:
> Even better, write an NSFormatter subclass which has -attributedStringForObjectValue:withDefaultAttributes: exactly for your sort of scenario. Use the default attributes to create an attributed string from your model string. Then, modify any special characters to use Arial.
Yes, that seems even better.
On 2010 Mar 24, at 12:21, Kyle Sluder wrote:
> I would create a custom font containing the characters you need, and insert that font into the cascade list ahead of the system font. Then you can safely reuse the standard code points for the symbols you want to draw.
Great. That looks like what I really want to do.
Can a custom font be accessed from my application package, or do I need an installer (eeek!) to put it into Library/Fonts, as I have seen apps do?
I presume that the task of creating the font is not related to Cocoa and will search elsewhere.
The font cascade list is mentioned briefly in "Core Text Programming Guide", but there is no clue as to how to access it.
Any documentation references on these topics would be appreciated!
Jerry
_______________________________________________
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