Bug 9363

Summary: ATSUI doesn't round to nearest pixel
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: patch to fix the problem
Output of text-rotate after the patch

Description Brian Ewins 2006-12-16 05:00:43 UTC
Continuing bug 9350 (rather than post multiple patches on a single bug)

cairo-scaled-font.c rounds glyph positions to the nearest pixel, but this code
path isn't used by the atsui backend, resulting in small differences in the
output from the ft backend.
Comment 1 Brian Ewins 2006-12-16 05:03:10 UTC
Created attachment 8134 [details] [review]
patch to fix the problem

adds rounding with the same todo comment as in cairo-scaled-font. applied after
the patch in 9350
Comment 2 Brian Ewins 2006-12-16 05:04:08 UTC
Created attachment 8135 [details]
Output of text-rotate after the patch

compare this to the patched output in 9350
Comment 3 Behdad Esfahbod 2006-12-16 12:44:40 UTC
Thanks.  Committed: be6edd64a3f45f7fb33f7d57b71b1ef467b474e1

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.