Versions in this module Expand all Collapse all v0 v0.1.1 Mar 29, 2024 v0.1.0 Dec 26, 2023 Changes in this version + const Cursive + const Emoji + const Fantasy + const Math + const Monospace + const SansSerif + const Serif + func DefaultFontDirectories(logger Logger) ([]string, error) + type FontMap struct + func NewFontMap(logger Logger) *FontMap + func (fm *FontMap) AddFace(face font.Face, location Location, md meta.Description) + func (fm *FontMap) AddFont(fontFile font.Resource, fileID, familyName string) error + func (fm *FontMap) FindSystemFont(family string) (Location, bool) + func (fm *FontMap) FindSystemFonts(family string) []Location + func (fm *FontMap) FontLocation(ft font.Font) Location + func (fm *FontMap) FontMetadata(ft font.Font) (family string, aspect meta.Aspect) + func (fm *FontMap) ResolveFace(r rune) (face font.Face) + func (fm *FontMap) ResolveFaceForLang(lang LangID) font.Face + func (fm *FontMap) SetQuery(query Query) + func (fm *FontMap) SetRuneCacheSize(size int) + func (fm *FontMap) UseSystemFonts(cacheDir string) error + type LangID uint16 + func NewLangID(l language.Language) (LangID, bool) + type Location = api.FontID + type Logger interface + Printf func(format string, args ...interface{}) + type Query struct + Aspect meta.Aspect + Families []string