golang/freetype

undefined: font.Metrics

ChongyuE opened this issue · 1 comments

cmd:go get github.com/golang/freetype

github.com/golang/freetype/truetype

../../../golang/freetype/truetype/face.go:254: undefined: font.Metrics
../../../golang/freetype/truetype/face.go:257: undefined: font.Metrics

image

how to resolve this problem?

I suspect that you need to update your golang.org/x/image/font checkout. Run

go get -u golang.org/x/image/font