• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can I add my own characters to strings in text fields?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Can I add my own characters to strings in text fields?
      • From: Quincey Morris <email@hidden>
    • Re: Can I add my own characters to strings in text fields?
      • From: Kyle Sluder <email@hidden>
References: 
 >Can I add my own characters to strings in text fields? (From: Jerry Krinock <email@hidden>)
 >Re: Can I add my own characters to strings in text fields? (From: Mike Abdullah <email@hidden>)
 >Re: Can I add my own characters to strings in text fields? (From: Jerry Krinock <email@hidden>)
 >Re: Can I add my own characters to strings in text fields? (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: Can I add my own characters to strings in text fields?
  • Next by Date: Re: Can I add my own characters to strings in text fields?
  • Previous by thread: Re: Can I add my own characters to strings in text fields?
  • Next by thread: Re: Can I add my own characters to strings in text fields?
  • Index(es):
    • Date
    • Thread