• 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: Unicode to CGGlyph ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Unicode to CGGlyph ?
      • From: Christopher Lloyd <email@hidden>
References: 
 >Unicode to CGGlyph ? (From: Christopher Lloyd <email@hidden>)

  • Prev by Date: Using the Security Framework
  • Next by Date: Re: (no subject)
  • Previous by thread: Unicode to CGGlyph ?
  • Next by thread: Re: Unicode to CGGlyph ?
  • Index(es):
    • Date
    • Thread