Documentation ¶
Index ¶
- type Placer
- func (p *Placer) Bounds(text string, wrapwidth int) (width int, height int)
- func (p *Placer) CenterAt(pt image.Point, text string, wrapwidth int, align string)
- func (p *Placer) SetColor(c color.Color)
- func (p *Placer) SetFont(fontPath string) error
- func (p *Placer) WriteAt(pt image.Point, text string, wrapwidth int, align string)
- func (p *Placer) WriteAtCenter(text string, wrapwidth int, align string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Placer ¶
func (*Placer) Bounds ¶
Returns the size the string will take up on the image. Font may be drawn outside of the box depending on the font.
Click to show internal directories.
Click to hide internal directories.