bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #19352] Cairo: bad EPS from NSView_dataWithEPSInsideRect:


From: Mark Tracy
Subject: [bug #19352] Cairo: bad EPS from NSView_dataWithEPSInsideRect:
Date: Sun, 18 Nov 2007 05:36:05 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.5) Gecko/20061023 SUSE/2.0.0.5-1.1 Firefox/2.0.0.5

Follow-up Comment #16, bug #19352 (project gnustep):

Not waiting for cairo, I hacked my own cairo_clone() function that faithfully
copies the clip, and used it in [CairoGState -copyWithZone:]. While it
continued to display to the screen OK, the printing got worse, not better. It
appears that the bounding box is not correctly computed from the paper size
and margins. Furthermore, one of the clipping rectangles is misplaced
vertically. The problem is especially severe when trying to print a small view
on a larger piece of paper; the clipping rectangles do not intersect, so
nothing prints at all. You can demonstrate this with TestApp by playing with
the window size and paper size.

When I use cairo_reset_clip() after cairo_clone(), the printing behavior is
the same as the original. There are still some errors in clipping and
placement, but not so severe. For most cases, the worst problem is wrong
margins.

My cairo hack is probably not suitable for general use. It may be handy to
see what is wrong while waiting for the official cairo_copy_clip() to appear.

(file #14421, file #14422)
    _______________________________________________________

Additional Item Attachment:

File name: cairo_clone.patch              Size:3 KB
File name: TestApp.tar.bz2                Size:71 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19352>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]