Re: Unicode to CGGlyph ?
Re: Unicode to CGGlyph ?
- Subject: Re: Unicode to CGGlyph ?
- From: Ali Ozer <email@hidden>
- Date: Sat, 5 May 2001 09:54:19 -0700
You can use NSLayoutManager / NSTextStorage combo to generate glyphs for
an attributed string (unichars + style info). The glyphs and info about
their locations will be available in the layoutmanager, which you can
keep around as long as you need.
This is still going through the text system, but it's avoiding some of
the overhead in the string drawing routines.
Ali
Begin forwarded message:
>
From: Christopher Lloyd <email@hidden>
>
Date: Sat May 05, 2001 02:42:20 AM US/Pacific
>
To: email@hidden
>
Subject: Unicode to CGGlyph ?
>
>
Hi, does anyone know how to convert unichar's to CGGlyph's ? I would
>
like to use CGContextShowGlyphsAtPoint and need a way to generate the
>
glyphs. I don't want to use the string drawing stuff in the AppKit for
>
performance reasons.
>
>
I am also looking for a CoreGraphics equivalent to PostScript's xyshow,
>
calling CGContextShowGlyphsAtPoint for each character seems expensive.
>
I get the feeling that is not there though..
>
>
>
Thanks!
>
Chris
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev