Summary: | Clip doesn't work for text | ||
---|---|---|---|
Product: | cairo | Reporter: | Igor Nikitin <igor_nikitin> |
Component: | image backend | Assignee: | Carl Worth <cworth> |
Status: | RESOLVED FIXED | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | normal | ||
Priority: | medium | ||
Version: | 1.9.10 | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
result file
cairo_clip for complex area |
Description
Igor Nikitin
2010-07-11 09:18:45 UTC
Created attachment 36950 [details]
result file
more info - if use this code: cairo_rectangle( target, 0, 0, 40, 5 ); cairo_rectangle( target, 0, 7, 40, 1 ); clipping works fine, so seems here some wrong optimization for one rectangle Created attachment 36968 [details]
cairo_clip for complex area
more info again - for font 'terminus' complex clipping area also not work P.S. Someone reads this? :) Igor, I've added your test case to the test suite using the permissive MIT license. Please let me know if you have any objections. commit ef0679333da881bd83b0bb4db546ea9c68f81f89 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Mon Jul 12 16:07:27 2010 +0100 image: Manually clip against bounds when rendering directly This is path is slightly peculiar in that it explicitly avoid the intermediate mask and the geometry is not pre-clipped. This in conjunction with the previous commit fixes: Clip doesn't work for text https://bugs.freedesktop.org/show_bug.cgi?id=29008 which is captured in test/partial-clip-text. commit 679e5a600bd7dae6cbde83070fb1f7355f8025a7 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Mon Jul 12 16:06:32 2010 +0100 Differentiate between reducing clip to composite extents and a rectangle This is required for handling glyphs when rendering directly to the surface. commit 8546a877889bfafc056c867bc9aea25e9fdcdef0 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Mon Jul 12 16:27:29 2010 +0100 test: Add partial-clip-text This exercises a bug found by Igor Nikitin: https://bugs.freedesktop.org/show_bug.cgi?id=29008 big thanks for fix |
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.