Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Font ¶
type Font struct {
// contains filtered or unexported fields
}
Font implements font parsing and glyph (character) generation.
func (*Font) AdvanceWidth ¶
Kern returns the horizontal adjustment for the given glyph pair. A positive kern means to move the glyphs further apart.
func (*Font) Configure ¶
func (f *Font) Configure(cfg FontConfig) error
func (*Font) Kern ¶
Kern returns the horizontal adjustment for the given glyph pair. A positive kern means to move the glyphs further apart.
func (*Font) LoadTTFBytes ¶
LoadTTFBytes loads a TTF file blob into f. After calling Load the Font is ready to generate text SDFs.
type FontConfig ¶
Click to show internal directories.
Click to hide internal directories.