1) Is there a way to get the current states of these for a given
context? I don't see any "getters" in CGContext.h
No.
2) So, generally speaking, I should set BOTH ShouldAntialias(true)
and ShouldSmoothFonts(true) to ensure that the user gets what they
want as set via the Appearance options?
No, just set ShouldAntialias(true) if you want antialiasing and unless
you have set ShouldSmoothFonts(false) and want to turn it back on, you
should not need to
Use ShouldSmootFonts(false) when you want to draw text to a bitmap
context where you don't want color fringing (caused by LCD text
rendering) or if you are drawing text into an completely transparent
window with a clear background (LCD text rendering requires per
component alpha which isn't present in a bitmap context).
Maybe we need a technote or a Q&A for this to help out developers.
haroon
I'm trying to figure out right now why text I'm drawing via ATSUI
doesn't have the same anti-aliasing/smoothing that the same
text/font/size does in TextEdit.app. I'm asking some ATSUI-related
questions though on carbon-dev -- perhaps this list would be more
appropriate?
Bryan
On Feb 4, 2005, at 2:36 AM, Haroon Sheikh wrote:
Three options of rendering text:
1) Non-antialiased text (these are the the 1 bit hinted bitmaps). In
this case antialiasing is off
2) Antialiased text (this is the same as "Standard" font smoothing
in the Font Smoothing setting in Appearance pane of System
Preferences.
3) LCD based antialiasing, which uses the r,g,b subpixels to render
text. In this case Font Smoothing and antialiasing are both true.
The quality of the font smoothing is determined by the Font
Smoothing setting in Appearance pane of System Preferences.
haroon
On Feb 3, 2005, at 3:22 PM, R. Scott Thompson wrote:
What is the difference betweeen Font Smoothing and Antialiasing?
Or perhaps a better question, what exactly is Font Smoothing?
Can the font smoothing and antialiasing GState fields contain
opposing values (font smoothing without antialiasing, or
vice-versa)?
Scott
_______________________________________________
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