Documentation ¶
Index ¶
- Constants
- type Font
- func (f *Font) Height() int
- func (f *Font) Letters() map[byte]image.Rectangle
- func (f *Font) MakeWord(word string) *image.Paletted
- func (f *Font) MakeWordColor(word string, bg, fg color.Color) *image.Paletted
- func (f *Font) Name() string
- func (f *Font) Width(word string) int
- func (f *Font) WrapText(sentence string, width int) []string
Constants ¶
View Source
const WRAP_THRESH = 10
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Font ¶
type Font struct {
// contains filtered or unexported fields
}
func NewFontFromFile ¶
func NewFontFromImage ¶
func (*Font) MakeWordColor ¶
MakeWordColor makes an image from a string (with colors)
Click to show internal directories.
Click to hide internal directories.