Bug 65398

Summary: cairo_show_text incorrectly handles clipping rectangles
Product: cairo Reporter: Kyku <kwrzalik>
Component: image backendAssignee: Chris Wilson <chris>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium CC: kwrzalik
Version: 1.12.14   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Source code
Image with incorrect output

Description Kyku 2013-06-05 08:09:25 UTC
Created attachment 80322 [details]
Source code

It looks like cairo draws text outside of the clipped region. This depends on selected font size. It happens on some font sizes and not on other.
Comment 1 Kyku 2013-06-05 08:10:46 UTC
Created attachment 80323 [details]
Image with incorrect output
Comment 2 Uli Schlachter 2013-06-06 16:33:42 UTC
This was already fixed in git master. git bisect says:

commit 41bef0fc385381b8c6b9091ec7ca2abe04cfc147
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu May 30 20:57:04 2013 +0100

    traps: Ensure that we correctly clip when using multiple clip boxes
    
    We need to be more careful when trying to discard a clip to be sure that
    it is truly not required. In particular, we need to not throw a way a
    clip region when it has more than one box intersecting the mask.
    
    Reported-by: Alexander Larsson
    Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=697357
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

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.