Drawing unicode glpyhs
Drawing unicode glpyhs
- Subject: Drawing unicode glpyhs
- From: Thomas Davie <email@hidden>
- Date: Thu, 03 May 2012 16:04:16 +0100
Hi all,
I'm having an issue with drawing text via CGContextShowGlyphs, whereby it doesn't draw cyrilic (and presumably a variety of other exciting) characters.
The code at https://github.com/beelsebob/OpenStreetPad/blob/master/OpenStreetPad/OSPMetaTileView.m#L710 (which goes via CTLineDraw) successfully renders all characters, correctly.
Meanwhile, the code at https://github.com/beelsebob/OpenStreetPad/blob/master/OpenStreetPad/OSPMetaTileView.m#L797 (which use CGContextShowGlyphs to draw the glyphs on a path) does not draw them correctly (instead outputting "Helvetica-Light: FT_Load_Glyph failed: error 6").
It appears that this text path doesn't deal with font fallbacks correctly; the docs for CTLineDraw though say that it's just an alias for repeatedly calling CGContextShowGlyphs.
Anyone got any ideas what I could have ballsed up?
Thanks
Tom Davie
if (*ra4 != 0xffc78948) { return false; }
_______________________________________________
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