FWIW, I've seen this happen when drawing very small text. Probably
font sizes that fall below the minimum text smoothing size set in the
system preferences. I haven't noticed this in a some time but I
don't know if it's changed or if it's because I've set my text
smoothing preference to the minimum value.
Hmm... yeah, that could be it ... I'm dealing a 6.5 font size, though
in this particular test case the context is scaled 400%. And sure,
enough, once I changed the point size to 26.0 and changed the
document's scale back to 100% the text looked correct.
This is quite a problem. Yes, in this case, I'm drawing 6.5 pt type,
but two questions:
1) Why does tracking get completely borked? Especially on spaces?
My guess is that it's falling back to bitmap screen fonts in this case
and ignoring fractional character widths.
2) Shouldn't Quartz realize that the context is scaled and that the
type is ultimately coming out at 26 pt in this particular case?
I'd say that somebody should, but it's unclear to me whether that's
Quartz or ATSUI. Personally I'd like an option to just turn this
behavior off and let it use the consistent behavior all the way down to
microscopic text if the user wants to specify something that small.
At least I know I'm not going nuts now. So... the next question... is
there a way I can programmatically force anti-aliasing in these cases?
I thought that's what kATSLineApplyAntiAliasing was for, but that
doesn't seem to be the case.
As you've observed the decision appears to be determined entirely on
the point size you set in the ATSUI style object. For me the
workaround of setting the system preferences has reduced the priority
of fixing this, but my intended approach has been to always tell ATSUI
that my fonts are 10 times the actual size and then scale the CTM or
perhaps the text matrix before I draw.
Nick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden