Versions in this module Expand all Collapse all v0 v0.0.2 Mar 5, 2022 v0.0.1 Mar 5, 2022 Changes in this version + const PosBottom + const PosCenter + const PosLeft + const PosRight + const PosTop + type Handler interface + Box func(txt string, fnt font.Font) (width, height, depth vg.Length) + Cache func() *font.Cache + Draw func(c vg.Canvas, txt string, sty Style, pt vg.Point) + Extents func(fnt font.Font) font.Extents + Lines func(txt string) []string + type Plain struct + Fonts *font.Cache + func (hdlr Plain) Box(txt string, fnt font.Font) (width, height, depth vg.Length) + func (hdlr Plain) Cache() *font.Cache + func (hdlr Plain) Draw(c vg.Canvas, txt string, sty Style, pt vg.Point) + func (hdlr Plain) Extents(fnt font.Font) font.Extents + func (hdlr Plain) Lines(txt string) []string + type Style struct + Color color.Color + Font font.Font + Handler Handler + Rotation float64 + XAlign XAlignment + YAlign YAlignment + func (s Style) FontExtents() font.Extents + func (s Style) Height(txt string) vg.Length + func (s Style) Rectangle(txt string) vg.Rectangle + func (s Style) Width(txt string) (max vg.Length) + type XAlignment float64 + const XCenter + const XLeft + const XRight + type YAlignment float64 + const YBottom + const YCenter + const YTop