pad text in icon

This commit is contained in:
Aaron Bieber 2024-02-18 17:01:42 -07:00
parent 4fe287d31b
commit 8175761483
No known key found for this signature in database

View File

@ -49,7 +49,7 @@ func buildImage(db int) *myIcon {
Dot: fixed.P(-3, 190), Dot: fixed.P(-3, 190),
} }
r := []rune(fmt.Sprintf("%d", db)) r := []rune(fmt.Sprintf("%3s", fmt.Sprintf("%d", db)))
l := string(r) l := string(r)
d.DrawString(l) d.DrawString(l)