• 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
Re: Getting a bezier path for a character
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting a bezier path for a character


  • Subject: Re: Getting a bezier path for a character
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 27 Apr 2010 18:57:17 -0700


On Apr 27, 2010, at 6:45 PM, email@hidden wrote:

Some (many) fonts do not rednder the right path for the glyph,
a 'W' in in "Arial Black" for example is fine (looks like W), but in
"Arial Hebrew" it looks like a J
in some other fonts it just looks like a square box (as it is missing) yet
it does exist in that font if I just use TextEdit for example

You might be running into font substitution. Not every font has glyphs for every character, so the text system will substitute missing glyphs from some other fallback font. So for example if I look at Arial Hebrew in Font Book and check the Repertoire preview, it doesn't show any Roman letters, only Hebrew ones (and Roman digits.) Thus, I think the "W" you see is substituted from a different font, probably regular Arial or Lucida Grande.


I haven't used the glyph APIs before, but I'd guess that the NSGlyph ID you get is for the effective font, not necessarily the one you specified. Thus the mismatch.

—Jens_______________________________________________

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


References: 
 >Getting a bezier path for a character (From: email@hidden)

  • Prev by Date: Design for cleaning up Undo for a tree of objects
  • Next by Date: Re: Design for cleaning up Undo for a tree of objects
  • Previous by thread: Getting a bezier path for a character
  • Next by thread: Re: Getting a bezier path for a character
  • Index(es):
    • Date
    • Thread