• 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
Rendering combining marks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Rendering combining marks
      • From: Wim Lewis <email@hidden>
  • Prev by Date: NSView drawing with superimposed text
  • Next by Date: Re: NSView drawing with superimposed text
  • Previous by thread: Re: NSView drawing with superimposed text
  • Next by thread: Re: Rendering combining marks
  • Index(es):
    • Date
    • Thread