From 4d5a250fb80df8977419a36e3f0ede9285af6fa4 Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Fri, 22 Apr 2016 16:57:31 -0400 Subject: [PATCH] DrawString bug fix --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index ad73ee5..0dcadd1 100644 --- a/context.go +++ b/context.go @@ -585,9 +585,9 @@ func (dc *Context) DrawString(s string, x, y float64) { // text. Use ax=0.5, ay=0.5 to center the text at the specified point. func (dc *Context) DrawStringAnchored(s string, x, y, ax, ay float64) { w, h := dc.MeasureString(s) + x, y = dc.TransformPoint(x, y) x -= ax * w y += ay * h - x, y = dc.TransformPoint(x, y) if dc.mask == nil { dc.drawString(dc.im, s, x, y) } else {