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 Centimeter + const Inch + const Millimeter + type Cache struct + var DefaultCache *Cache = NewCache(nil) + func NewCache(coll Collection) *Cache + func (c *Cache) Add(coll Collection) + func (c *Cache) GobDecode([]byte) error + func (c *Cache) GobEncode() ([]byte, error) + func (c *Cache) Has(fnt Font) bool + func (c *Cache) Lookup(fnt Font, size Length) Face + type Collection []Face + type Extents struct + Ascent Length + Descent Length + Height Length + type Face struct + Face *opentype.Font + Font Font + func (f *Face) Extents() Extents + func (f *Face) FontFace(dpi float64) font.Face + func (f *Face) Name() string + func (f *Face) Width(s string) Length + type Font struct + Size Length + Style font.Style + Typeface Typeface + Variant Variant + Weight font.Weight + func From(fnt Font, size Length) Font + func (f *Font) Name() string + type Length float64 + func ParseLength(value string) (Length, error) + func Points(pt float64) Length + func (l Length) Dots(dpi float64) float64 + func (l Length) Points() float64 + type Typeface string + type Variant string