Versions in this module Expand all Collapse all v0 v0.1.0 Jul 28, 2026 Changes in this version + func Call(recv any, method string, args ...any) (any, error) + func Families() []any + func Load(name string) []byte + func Methods(recv any) []string + func MostLegible() []byte + func ResolveLevels(text, base string) []any + func Shape(face *Face, text string, opts map[string]any) []any + func VisualOrder(text, base string) string + type Face struct + func (fc *Face) Advance(r rune) int + func (fc *Face) GlyphInfo(r rune, x, y int) map[string]any + func (fc *Face) Kern(prev, r rune) int + func (fc *Face) Measure(text string) int + func (fc *Face) Metrics() map[string]any + func (fc *Face) SetHinting(on bool) + func (fc *Face) SetVariation(coords map[string]any) map[string]any + type Font struct + func DefaultFont() (*Font, error) + func OpenFont(ttf []byte) (*Font, error) + func Parse(ttf []byte) (*Font, error) + func (f *Font) Axes() []any + func (f *Font) Face(px int) *Face + func (f *Font) GlyphIndex(r rune) any + func (f *Font) NamedInstances() []any + func (f *Font) NumGlyphs() int + type Module struct + func NewModule() *Module + func (m *Module) DefaultFont() (*Font, error) + func (m *Module) Families() []any + func (m *Module) Load(name string) []byte + func (m *Module) MostLegible() []byte + func (m *Module) OpenFont(ttf []byte) (*Font, error) + func (m *Module) Parse(ttf []byte) (*Font, error) + func (m *Module) ResolveLevels(text, base string) []any + func (m *Module) Shape(face *Face, text string, opts map[string]any) []any + func (m *Module) VisualOrder(text, base string) string