Bug 65398 - cairo_show_text incorrectly handles clipping rectangles
Summary: cairo_show_text incorrectly handles clipping rectangles
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: image backend (show other bugs)
Version: 1.12.14
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Chris Wilson
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-05 08:09 UTC by Kyku
Modified: 2013-06-06 16:33 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Source code (1.80 KB, text/plain)
2013-06-05 08:09 UTC, Kyku
Details
Image with incorrect output (9.50 KB, image/png)
2013-06-05 08:10 UTC, Kyku
Details

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.