Versions in this module Expand all Collapse all v0 v0.0.6 May 16, 2021 Changes in this version + type Alignment uint8 + const End + const Middle + const Start + func (a Alignment) String() string + type Cache struct + func NewCache(collection []FontFace) *Cache + func (s *Cache) Layout(font Font, size fixed.Int26_6, maxWidth int, txt io.Reader) ([]Line, error) + func (s *Cache) LayoutString(font Font, size fixed.Int26_6, maxWidth int, str string) []Line + func (s *Cache) Shape(font Font, size fixed.Int26_6, layout Layout) op.CallOp + type Face interface + Layout func(ppem fixed.Int26_6, maxWidth int, txt io.Reader) ([]Line, error) + Shape func(ppem fixed.Int26_6, str Layout) op.CallOp + type Font struct + Style Style + Typeface Typeface + Variant Variant + Weight Weight + type FontFace struct + Face Face + Font Font + type Layout struct + Advances []fixed.Int26_6 + Text string + type Line struct + Ascent fixed.Int26_6 + Bounds fixed.Rectangle26_6 + Descent fixed.Int26_6 + Layout Layout + Width fixed.Int26_6 + type Shaper interface + Layout func(font Font, size fixed.Int26_6, maxWidth int, txt io.Reader) ([]Line, error) + LayoutString func(font Font, size fixed.Int26_6, maxWidth int, str string) []Line + Shape func(font Font, size fixed.Int26_6, layout Layout) op.CallOp + type Style int + const Italic + const Regular + type Typeface string + type Variant string + type Weight int + const Bold + const Medium + const Normal