diff --git a/path_simplify.go b/path_simplify.go index 4d54a859..2d65d8e1 100644 --- a/path_simplify.go +++ b/path_simplify.go @@ -167,7 +167,6 @@ SubpathLoop: if closed { q.d = append(q.d, CloseCmd, items[first].X, items[first].Y, CloseCmd) } - } return q } diff --git a/resources/docs/colors/main.go b/resources/docs/colors/main.go index 377876a3..d202ae84 100644 --- a/resources/docs/colors/main.go +++ b/resources/docs/colors/main.go @@ -72,7 +72,7 @@ func main() { ctx.DrawPath(0.5+10.0*float64(i), -9.5-10.0*float64(j), canvas.Rectangle(9.0, 9.0)) p, w, _ := face.ToPath(names[idx]) - p = p.Offset(0.05, canvas.EvenOdd, 0.01) + p = p.Offset(0.05, 0.01) p = p.Translate(-w/2.0, 0.0) ctx.SetFillColor(canvas.Hex("#ffffff88")) ctx.DrawPath(5.0+10.0*float64(i), -9.0-10.0*float64(j), p)