From 60b91a20e19f8c8f293e6e90fb85db736b65970d Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Wed, 24 Feb 2016 21:45:09 -0500 Subject: [PATCH] workaround freetype/raster issues --- context.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/context.go b/context.go index b959311..073c973 100644 --- a/context.go +++ b/context.go @@ -345,6 +345,10 @@ func (dc *Context) StrokePreserve() { path := dc.strokePath if len(dc.dashes) > 0 { path = dashed(path, dc.dashes) + } else { + // TODO: this is a temporary workaround to remove tiny segments + // that result in rendering issues + path = rasterPath(flattenPath(path)) } painter := raster.NewRGBAPainter(dc.im) painter.SetColor(dc.color)