• 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: NSGlyph, NSBezierPath questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSGlyph, NSBezierPath questions


  • Subject: Re: NSGlyph, NSBezierPath questions
  • From: Raphael Sebbe <email@hidden>
  • Date: Sat, 8 Dec 2001 09:43:15 +0100

On Friday, December 7, 2001, at 10:48 PM, Aki Inoue wrote:

Raphael,

- I would like to translate the glyph so that its baseline is located at y=0.0 (I mean the glyphs of the first line of text). What I get now is that the glyph is too high and I don't know by how much I have to translate it. Is there a method for that ?
With the current API set, you cannot get the baseline offset outside of NSLayoutManager. We have a plan to fix this in a future release.


Not even a workaround ? I played a little with NSFont's ascender/descender methods and NSLayoutManager's lineFragmentRect methods without success so far. But there should be a way... Please tell me there is a solution...

- When parsing glyphs corresponding to a sentence, I get a "square frame" glyph on \n characters (and perhaps some others too). Of course I don't want them, so, is there a way to skip (or identify) those "non-representable" characters/glyphs ?
You can filter out those control glyphs used by the kit by comparing against the number of glyphs in the font. If the glyph id is larger than or equal to the number of glyphs, you don't want to render it.


That works fine, thanks !

Raphael


References: 
 >Re: NSGlyph, NSBezierPath questions (From: Aki Inoue <email@hidden>)

  • Prev by Date: File path from NSFileSystemFileNumber
  • Next by Date: Re: File path from NSFileSystemFileNumber
  • Previous by thread: Re: NSGlyph, NSBezierPath questions
  • Next by thread: NSTabView with NoTabsBezelBorder / shadow
  • Index(es):
    • Date
    • Thread