Can I add my own characters to strings in text fields?
Can I add my own characters to strings in text fields?
- Subject: Can I add my own characters to strings in text fields?
- From: Jerry Krinock <email@hidden>
- Date: Wed, 24 Mar 2010 07:58:03 -0700
In presenting technical information I'd often like to display, in a text field, a character which is either not available in the Unicode charts, or looks ugly when rendered by Cocoa. For example, as a shorthand for indicating that 5 items were moved up or down, I'd like to display "↕5". That symbol to before the 5 is a vertical arrow with arrowheads on both ends, Unicode character 0x2195. But it looks terrible when rendered by Cocoa in 11-point system font. The line gets dimmed-down by antialiasing, appearing too thin, and the arrowheads look like randomly broken pixels.
Now I know that I could create a black-and-white graphic which would look much better than that, but I'm a Dummy regarding fonts. I've read that Unicode has an area for "private use". Is it practical or even possible to install a few of my own characters for Lucide Grande which the system would use? Some of what I've read leads me to believe that I'd need to get a PhD in Fontology. Can I restrict my new characters to only Lucide Grande at a few sizes? What are the steps involved and what should I read?
Or could/would I be better off somehow inserting an image into an attributed string? That would be yucky because then this issue would be oozing into my code and in some places, even my data model.
Thanks,
Jerry Krinock
_______________________________________________
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