Versions in this module Expand all Collapse all v0 v0.1.3 Sep 24, 2026 Changes in this version + const FontBlack + const FontBold + const FontExtraBold + const FontExtraLight + const FontItalic + const FontLight + const FontMedium + const FontRegular + const FontSemiBold + const FontThin + type CTColor = drawing.CTColor + type FontFace = drawing.FontFace + type FontFamily = drawing.FontFamily + type FontStyle = drawing.FontStyle + type Fonts struct + Fonts map[models.StRefID]*canvas.FontFamily + func NewFonts(doc *parser.Document) *Fonts + func (p *Fonts) FaceObject(family drawing.FontFamily, object models.TextObject, fill *drawing.CTColor) drawing.FontFace + func (p *Fonts) FallbackFontFamily(id models.StRefID) string + func (p *Fonts) HasLoadedEmbeddedFont(id models.StRefID) bool + func (p *Fonts) LoadFont(id models.StRefID) (drawing.FontFamily, error) + func (p *Fonts) RegisterGlyphs(id models.StRefID, pairs map[rune]uint16) + func (p *Fonts) RegisterPageGlyphs(doc *parser.Document, page *parser.Page, content *models.PageContent) + func (p *Fonts) RemoveFallbackFont(family string) + func (p *Fonts) RenderLock(handle drawing.FontFamily) *sync.Mutex + func (p *Fonts) UseFallbackFont(family string) error + type TextRun = drawing.TextRun