just set the Src to the color you want and it will change the color fg := image.Black d := &font.Drawer{ Dst: rgba, Src: fg, //<----- Face: truetype.NewFace(f, &truetype.Options{ Size: *size, DPI: *dpi, Hinting: h, }), }
On Wednesday, August 1, 2018 at 6:38:47 PM UTC+2, zakaria amine wrote: > > Hi, > > I am trying to set the color for the text drwan using freetype library > based on this example: > https://github.com/golang/freetype/blob/master/example/freetype/main.go > > I tried different combinations without luck. > > > Anybody having used this library before? > > > Thanks. > > Zakaria > > > -- 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.