Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
GLCD5x8 = NewFont(5, 8, fontGLCD5x8)
)
Builtin fonts.
Functions ¶
This section is empty.
Types ¶
type Font ¶
type Font interface { // Glyph returns the image mask for the requested glyph. Glyph(r rune) image.Image // Bounds is the bounding box that fits any glyph in the font. Bounds() image.Rectangle }
Font can render glyph images.
func NewFontCache ¶
NewFontCache is a helper that caches all rendered glyphs in memory.
Click to show internal directories.
Click to hide internal directories.