• 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
Drawing unicode glpyhs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Drawing unicode glpyhs
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: NSTableView doesn't show data until I click on a header
  • Next by Date: Re: Minimal document-based app
  • Previous by thread: Re: Window "snapping" to main screen
  • Next by thread: Re: Drawing unicode glpyhs
  • Index(es):
    • Date
    • Thread