Apply go fix modernizations

This commit is contained in:
Ian Gulliver
2026-03-05 11:39:13 -08:00
parent 165b9d1c6c
commit fc3bbf894f
6 changed files with 32 additions and 36 deletions

View File

@@ -108,11 +108,11 @@ type TextSpan struct {
func DrawOutlinedSpans(img *image.RGBA, face font.Face, defaultOutline color.Color, thickness int, lines ...[]TextSpan) {
var full []string
for _, line := range lines {
s := ""
var s strings.Builder
for _, span := range line {
s += span.Text
s.WriteString(span.Text)
}
full = append(full, s)
full = append(full, s.String())
}
metrics := face.Metrics()