Summary: | Negated values in the matrices generated by the PostScript backend are badly rounded | ||
---|---|---|---|
Product: | cairo | Reporter: | James Cloos <cloos> |
Component: | postscript backend | Assignee: | Carl Worth <cworth> |
Status: | RESOLVED NOTOURBUG | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | ajohnson |
Version: | 1.5.1 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Fix negation rounding in generated PostScript. |
Description
James Cloos
2007-08-16 12:04:49 UTC
Created attachment 11154 [details] [review] Fix negation rounding in generated PostScript. Can also be pulled from: git://people.freedesktop.org/~cloos/cairo.git 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. Comment on attachment 11154 [details] [review] Fix negation rounding in generated PostScript. invalid patch, bug is elsewhere. As was pointed out comment #2, doubles are used for matrices from the API through to the PostScript backend so the rounding is not caused by cairo. |
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.