[cairo-bugs] [Bug 4441] inverse transformation of line width

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 13 16:51:47 PDT 2005

Please do not reply to this email: if you want to comment on the bug, go to    
the URL shown below and enter yourcomments there.     

------- Additional Comments From cworth at cworth.org  2005-09-13 16:51 -------
WONTFIX due to incompatibility is the correct resolution.

As for "better" it really could be argued in either direction as Owen
suggests above. There are use cases for both scaling and not scaling the
line width.

Billy already volunteered one approach that allows for using transformations
while creating a path without affecting the line width.

Here's another alternative which you might find more suitable for your situation.

Here's a way to set the line width in pixel dimensions just prior to stroking,
regardless of what transformation has been in effect before:

    /* create path here using whatever scaling desired. */

    cairo_save (cr);
    cairo_identity_matrix (cr);
    cairo_set_line_width (cr, width_in_pixels);
    cairo_stroke (cr);
    cairo_restore (cr);

Good luck, and have fun!          
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the cairo-bugs mailing list