[cairo-bugs] [Bug 12031] Negated values in the matrices generated by the PostScript backend are badly rounded

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Aug 16 21:52:41 PDT 2007


http://bugs.freedesktop.org/show_bug.cgi?id=12031


cloos at jhcloos.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|http://gitweb.freedesktop.or|
                   |g/?p=users/cloos/cairo.git;a|
                   |=commit;h=25708248d72901677c|
                   |630ea7cfc6010b638cef9a      |




------- Comment #2 from cloos at jhcloos.com  2007-08-16 21:52 PST -------
I was looking into this a bit more while offline and noticed that the args are
doubles.  Because ‖-foo‖ ≠ foo I presumed the args were fixed point, but
I see from looking at the _cairo_matrix and _cairo_scaled_font structs that
they are in fact doubles.

Since ‖-double‖ ≡ double, that means there is a rounding bug in whatever
code is setting the matrix, since it is taking a single value and storing
differently-rounded versions of it in scaled_font->scale.xx and
scaled_font->scale.yy.

So, I'll delete the patch and will try to determine where the bad rounding
occurs.


-- 
Configure bugmail: http://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