Rendering combining marks
Rendering combining marks
- Subject: Rendering combining marks
- From: George Nachman <email@hidden>
- Date: Sun, 2 Jan 2011 13:23:58 -0800
Hi cocoa-dev,
I'm using CGContextShowGlyphsWithAdvances to render fixed-width text
because it is very fast. If a glyph is missing, I use
CTFontCreateForString() to pick a better font, and that usually works.
I ran into a case that I just can't solve with this technique: the
glyph for code point U+20d1 (COMBINING RIGHT HARPOON ABOVE) exists in
only one font on my system (Arial Unicode MS) and it is apparently not
in the global cascade list. I see that Terminal.app is somehow able to
correctly render this glyph (and it also uses
CGContextShowGlyphsWithAdvances when rendering such characters, at
least in part, as I can see from Activity Monitor's sampling). So I
think the trick is in finding out which font(s) have some glyph, but I
don't see an API to do this. Any ideas?
Thanks,
George
_______________________________________________
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