NSFont for glyph
NSFont for glyph
- Subject: NSFont for glyph
- From: Richard Salvatierra <email@hidden>
- Date: Fri, 5 Jan 2007 15:38:08 -0500
I am trying to draw an outline for an attributed String. This string
has multiple fonts/colors/styles. Using a layoutManager, I can get
the array of glyphs but I need to know its corresponding font in the
attributed string. My understanding is that a glyph does not
necessarily correspond to a character, as one character could be made
up of multiple glyphs and vise versa (?)
I can draw the text using: [layoutManager
drawGlyphsForGlyphRange:glyphRange atPoint:textFrameRect.origin]
But how can I stoke that text. I am going down the path of:
[bezier appendBezierPathWithGlyphs:glyphArray count:glyphCount
inFont: SomeFont];
-Rich
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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