• 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: Magnus Strand <email@hidden>
  • Date: Thu, 17 Feb 2005 16:09:35 +0100

Thanks, I am looking now at using either
NSLayoutManager method boundingRectForGlyphRange:inTextContainer:
or the methods in NSStringDrawing.h for calculating width of a line of text.

Magnus Strand


Douglas Davidson wrote:

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



--
*Magnus Strand *
Systemutvecklare | System Developer, MSc

*Teknik i Media* | Södra Förstadsgatan 2 | 211 43 Malmö | Tel +46 40 601 57 00 | Fax +46 40 601 57 99
Direkt +46 40 601 57 16 | Mobil +46 704 20 57 16 | email@hidden | www.tim.se


/This message contains information that may be privileged or confidential and is the property of Teknik i Media. / /It is intended only for the person to whom it is addressed. If you receive this message in error, please notify the sender immediately and delete all copies of this message. /

_______________________________________________
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


References: 
 >Re: How to get NSGlyph from unichar? (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Creating NSViews with code.
  • Next by Date: Re: Creating NSViews with code.
  • Previous by thread: Re: How to get NSGlyph from unichar?
  • Next by thread: AuthorizationExecuteWithPrivileges(): implementation bug or correct behavior?
  • Index(es):
    • Date
    • Thread