• 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: How to get NSGlyph from unichar?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get NSGlyph from unichar?


  • Subject: Re: How to get NSGlyph from unichar?
  • From: Douglas Davidson <email@hidden>
  • Date: Tue, 15 Feb 2005 09:07:58 -0800

On 2005-02-15 02:34:16 -0800 Magnus Strand <email@hidden> wrote:

Thanks, I will try to do this with NSLayoutManager, because I
need to calculate width of kerned text.


If you are trying to measure text, NSLayoutManager will definitely help. Just using NSFont methods to size glyphs will not get the contextual positioning, rearrangement (for complex scripts), and so forth that you get using NSLayoutManager as an interface to NSTypesetter. There are also convenience methods in NSStringDrawing.h for simple measurements.


Douglas Davidson

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How to get NSGlyph from unichar?
      • From: Magnus Strand <email@hidden>
References: 
 >Re: How to get NSGlyph from unichar? (From: Magnus Strand <email@hidden>)

  • Prev by Date: IB question
  • Next by Date: Re: IB question
  • Previous by thread: Re: How to get NSGlyph from unichar?
  • Next by thread: Re: How to get NSGlyph from unichar?
  • Index(es):
    • Date
    • Thread