Drawing NSGlyphs
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.