• 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: Douglas Davidson <email@hidden>
  • Date: Fri, 30 Mar 2012 09:44:24 -0700

On Mar 30, 2012, at 9:31 AM, Jens Alfke wrote:

>
> On Mar 30, 2012, at 9:18 AM, Jeff Schriebman wrote:
>
>> 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.
>
> I'm not familiar with the CG-level text APIs. But unless they're very low-level indeed, as long as they take Unicode strings you should be able to use arbitrary characters, and the renderer will substitute glyphs from appropriate fonts as needed.

They are in fact very low-level indeed, so ignore them unless you're prepared to write your own Unicode layout engine on top of them.  Use the string drawing APIs instead.

Douglas Davidson


_______________________________________________

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: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint
      • From: Jeff Schriebman <email@hidden>
References: 
 >Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint (From: Jeff Schriebman <email@hidden>)

  • Prev by Date: Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint
  • Next by Date: Re: Getting the best frame rate for NSView drawing
  • Previous by thread: Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint
  • Next by thread: Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint
  • Index(es):
    • Date
    • Thread