(no subject)
(no subject)
- Subject: (no subject)
- From: Robert Clair <email@hidden>
- Date: Thu, 23 Dec 2004 10:43:13 -0500
I use an NSTextView for input and, because I transform the coordinate
system,
I override the drawRect aand draw the glyphs with
[NSLayoutManager -drawGlyphsForGlyphRange:atPoint:]
After input and editing are complete I get the glyph outlines as
NSBezierPaths
and draw them as filled paths. There is always a tiny but noticeable
difference
in the visual appearance between the two ways of rendering. (Order of a
pixel
at any point size or view magnificaiton.) I'm guessing
that this has to do with font hinting and that the layout manager
routine
is looking at the hints and the outlines are un-hinted.
Is there any way to change the layout manager's behavior ? I'm doing
relatively large display text and the hinting is really irrelevant -
the glyphs
drawn from Bezier paths look just great, but the slight switch in
appearance is
annoying.
Also - as an experiment I entered some 6 point Times Roman text and
looked
at it both ways. It is very debatable that what the layout manager does
is
more pleasing. It is certainly darker in a lot of places, but it does
some
really unpleasant things like completely lose the ascender of the h in
"Th".
Thanks,
Bob Clair
_______________________________________________
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