Bug 9366

Summary: ATSUI doesn't support CAIRO_ANTIALIAS_NONE
Product: cairo Reporter: Brian Ewins <Brian.Ewins>
Component: quartz font backendAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: high    
Version: 1.3.7   
Hardware: PowerPC   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 9350    
Attachments: Output of text-antialias-none before the patch
patch to fix the problem
Output of text-antialias-none after the patch

Description Brian Ewins 2006-12-16 09:05:18 UTC
Cairo supports disabling antialiasing for text, this isn't enabled in the ATSUI
back end. Patch to rectify this follows.
Comment 1 Brian Ewins 2006-12-16 09:06:36 UTC
Created attachment 8136 [details]
Output of text-antialias-none before the patch
Comment 2 Brian Ewins 2006-12-16 09:10:03 UTC
Created attachment 8137 [details] [review]
patch to fix the problem

This sets the shouldAntialias flag on the CGContext. The CGRestoreState later
in the function will reset the flag.
Comment 3 Brian Ewins 2006-12-16 09:11:47 UTC
Created attachment 8138 [details]
Output of text-antialias-none after the patch

The remaining differences from the reference image are down to the different
hinting, positioning, and extents between ATSUI and FT
Comment 4 Behdad Esfahbod 2006-12-16 12:41:40 UTC
Thanks, committed: bf1c2ef1e2b6cffffb0f02fe5cb8df0728026642

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.