Apply go fix modernizations
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user