From f81e4a813766980c6e837893e19cc10bf6d7c41e Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Fri, 10 May 2024 14:04:55 -0400 Subject: text alignment --- 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 cfbdade..ecca18c 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.Draw([]byte(fmt.Sprintf("%.3f", v)), drw, r, BLACK, WHITE, text.ALIGN_RIGHT) return r } } -- cgit v1.2.3