Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint
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