From de5d2f5c78da7f8a578ecc25f8e8b1fa90f20264 Mon Sep 17 00:00:00 2001 From: faiface Date: Tue, 7 May 2019 22:40:27 +0200 Subject: examples/imageviewer: rename DrawText to MakeTextImage --- examples/imageviewer/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/imageviewer/util.go') diff --git a/examples/imageviewer/util.go b/examples/imageviewer/util.go index 94f25fb..e799988 100644 --- a/examples/imageviewer/util.go +++ b/examples/imageviewer/util.go @@ -63,7 +63,7 @@ func TTFToFace(ttf []byte, size float64) (font.Face, error) { })}, nil } -func DrawText(text string, face font.Face, clr color.Color) image.Image { +func MakeTextImage(text string, face font.Face, clr color.Color) image.Image { drawer := &font.Drawer{ Src: &image.Uniform{clr}, Face: face, -- cgit v1.2.3