The official go fonts contain two identical copyright notices inside the TTF data slice. One in UTF-8 and one in UTF16 format. These make their way into the final go binary. Bug or intentional TTF standard?
https://godoc.org/golang.org/x/image/font/gofont/gomono The godoc won't display the data, but there other several ways to see it, like look for /Copyright/ in the resulting binary or TTF data. package main import ( "golang.org/x/image/font/gofont/gomono" "github.com/as/edit" "github.com/as/text" ) func main(){ r, err := text.Open(text.BufferFrom(gomono.TTF)) if err != nil{ panic(err) } // ttf.bin:#148851,#156915 p, err := edit.Compile(`/Cop/,/A\x00G\x00E/w,copy1.txt,`) if err != nil{ panic(err) } p.Run(r) // open copy1.txt } -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.