This commit is contained in:
Will Charczuk 2016-07-07 14:46:52 -07:00
parent cbc4672f1e
commit df67121e9c

View File

@ -117,6 +117,7 @@ func (rr *rasterRenderer) SetFontSize(size float64) {
func (rr *rasterRenderer) SetFontColor(c color.RGBA) { func (rr *rasterRenderer) SetFontColor(c color.RGBA) {
println("RasterRenderer :: SetFontColor", ColorAsString(c)) println("RasterRenderer :: SetFontColor", ColorAsString(c))
rr.fontColor = c rr.fontColor = c
rr.gc.SetFillColor(c)
rr.gc.SetStrokeColor(c) rr.gc.SetStrokeColor(c)
} }
@ -124,6 +125,7 @@ func (rr *rasterRenderer) SetFontColor(c color.RGBA) {
func (rr *rasterRenderer) Text(body string, x, y int) { func (rr *rasterRenderer) Text(body string, x, y int) {
println("RasterRenderer :: Text", body, x, y) println("RasterRenderer :: Text", body, x, y)
rr.gc.CreateStringPath(body, float64(x), float64(y)) rr.gc.CreateStringPath(body, float64(x), float64(y))
rr.gc.Fill()
} }
// MeasureText implements the interface method. // MeasureText implements the interface method.