aboutsummaryrefslogtreecommitdiffstats
path: root/examples/imageviewer/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'examples/imageviewer/util.go')
-rw-r--r--examples/imageviewer/util.go2
1 files changed, 1 insertions, 1 deletions
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,