• 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: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint


  • Subject: Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint
  • From: Rhythmic Fistman <email@hidden>
  • Date: Fri, 06 Apr 2012 16:14:27 +0200

On 30 March 2012 18:18, Jeff Schriebman <email@hidden> wrote:
> I need to display the upwards arrow character in a specific position in a view.
> The unicode equivalence is U+2B06 and in UTF-8 it is E2 AC 86.
>
> I can successfully display it in Xcode on the console using NSLog(@"This is an up arrow character \u2B06");
>
> I have not found a way to use CGContextShowTextAtPoint to easily display such a character and the examples I have found using CGContextShowGlyphsAtPoint() seem to require me to use a font containing the upwards arrow glyph. Is there a generic all inclusive unicode font? What is the right approach to this issue? Suggestions are appreciated.

I like CoreText's CTFontGetGlyphsForCharacters (10.5) &
CTFontDrawGlyphs (10.7!).

If you can live with it not working on 10.6 then you're good.

RF

_______________________________________________

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

  • Prev by Date: iOS drawer-style interaction
  • Next by Date: Re: iOS 5: AVFoundation and MPMediaItemPropertyAssetURL
  • Previous by thread: Re: iOS drawer-style interaction
  • Next by thread: NSDocument app: combine multiple file contents to open one window instead of multiple windows
  • Index(es):
    • Date
    • Thread