This commit is contained in:
Michael Fogleman 2016-02-19 22:51:46 -05:00
parent 8ed9c9d862
commit b61daf122a

View File

@ -49,8 +49,6 @@ DrawEllipse(x, y, rx, ry float64)
DrawEllipticalArc(x, y, rx, ry, angle1, angle2 float64)
DrawImage(im image.Image, x, y int)
DrawImageAnchored(im image.Image, x, y int, ax, ay float64)
DrawString(s string, x, y float64)
DrawStringAnchored(s string, x, y, ax, ay float64)
MoveTo(x, y float64)
LineTo(x, y float64)
@ -65,6 +63,16 @@ StrokePreserve()
FillPreserve()
```
## Text Functions
```go
DrawString(s string, x, y float64)
DrawStringAnchored(s string, x, y, ax, ay float64)
MeasureString(s string) (w, h float64)
SetFontFace(fontFace font.Face)
LoadFontFace(path string, points float64)
```
## Color Functions
Colors can be set in several different ways for your convenience.