// SetTolerance is a wrapper around cairo_set_tolerance(). func (v *Context) SetTolerance(tolerance float64) { C.cairo_set_tolerance(v.native(), C.double(tolerance)) }
func (self *Surface) SetTolerance(tolerance float64) { C.cairo_set_tolerance(self.context, C.double(tolerance)) }
//SetTolerance sets the tolerance, in device units, when converting paths into //trapezoids. //Curved segments of the path will be subdivided until the maximum deviation //between the original path and the polygonal approximation is less than //tolerance. // //A larger value than the default of 0.1 will give better performance. //While in general a lower value improves appearance, it is unlikely a value //lower than .1 will improve appearance significantly. // //The accuracy of paths within libcairo is limited by the precision of its //internal arithmetic and tolerance is restricted by the smallest representable //internal value. // //Originally cairo_set_tolerance. func (c *Context) SetTolerance(tolerance float64) *Context { C.cairo_set_tolerance(c.c, C.double(tolerance)) return c }