NSGlyph, NSBezierPath questions
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