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

NSGlyph, NSBezierPath questions


  • Subject: NSGlyph, NSBezierPath questions
  • From: Raphael Sebbe <email@hidden>
  • Date: Fri, 7 Dec 2001 11:07:25 +0100

Hi all,

I am currently working on glyph generation as bezier paths and it has worked quite well so far. I still have some questions:

- 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 ?

- 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 ?


Note that I don't use the NSBezierPaths for drawing but instead process them for generating some other geometry, so NSLayoutManager drawing methods (drawGlyphs...) are irrelevant here.

Thanks,

Raphael


  • Follow-Ups:
    • Re: NSGlyph, NSBezierPath questions
      • From: Aki Inoue <email@hidden>
  • Prev by Date: Weird deallocation of custom cell class
  • Next by Date: NSTabView with NoTabsBezelBorder / shadow
  • Previous by thread: Re: Weird deallocation of custom cell class
  • Next by thread: Re: NSGlyph, NSBezierPath questions
  • Index(es):
    • Date
    • Thread