From 2a75e404af43ca8fa6e707d4506b41dad0ba1b83 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Fri, 10 May 2024 15:12:40 -0400 Subject: unicode support --- gui/widget/output.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui/widget/output.go') diff --git a/gui/widget/output.go b/gui/widget/output.go index ecca18c..16aacca 100644 --- a/gui/widget/output.go +++ b/gui/widget/output.go @@ -35,7 +35,7 @@ Loop: func outputDraw(v float64, r image.Rectangle) func(draw.Image) image.Rectangle { return func(drw draw.Image) image.Rectangle { - text.Draw([]byte(fmt.Sprintf("%.3f", v)), drw, r, BLACK, WHITE, text.ALIGN_RIGHT) + text.Draw(fmt.Sprintf("%.3f", v), drw, r, BLACK, WHITE, text.ALIGN_RIGHT) return r } } -- cgit v1.2.3