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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to