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

Drawing NSGlyphs


  • Subject: Drawing NSGlyphs
  • From: Vladimir Pilipyuk <email@hidden>
  • Date: Thu, 19 Sep 2002 16:11:05 +0100

That does not seem to me as a correct behavior of the -[NSBezierPath appendBezierPathWithGlyphs:count:inFont:] method that all the glyphs overlay each other at one point which is not shifted according to NSFont metrics for each glyph in the array.

Is this a bug?

Another problem is with foreign encodings, NSLayoutManager does not return NSGlyphs array good enough for NSBezierPath to draw them with the same font. Though it works for English language and some special foreign fonts. However NSTextView can show these foreign glyphs in the normal fonts as Times or Helvetica for instance. I must be missing something in glyphs encoding but cannot figure out what it is.

The CGContextShowGlyphs function accurately shifts the point for each glyph, but the same problem with foreign languages.

Sincerely,
Vladimir
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Drawing NSGlyphs
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: [java]Dynamically changing submenus
  • Next by Date: Re: Preferences (was: UI: "Direct manipulation" is in conflict with "Forgiveness")
  • Previous by thread: [java]Dynamically changing submenus
  • Next by thread: Re: Drawing NSGlyphs
  • Index(es):
    • Date
    • Thread