Versions in this module Expand all Collapse all v1 v1.0.0 Feb 28, 2021 Changes in this version + type Anchor int + const AnchorBottomCenter + const AnchorBottomLeft + const AnchorBottomRight + const AnchorCenter + const AnchorCenterLeft + const AnchorCenterRight + const AnchorTopCenter + const AnchorTopLeft + const AnchorTopRight + type Font struct + A uint8 + B uint8 + G uint8 + HeightInPixels int + R uint8 + func LoadFromFile(path string) (*Font, error) + func Read(r io.Reader) (*Font, error) + func (f *Font) Measure(text string) (w, h int) + func (f *Font) Write(dest draw.Image, text string, startX, startY int) (newX, newY int) + func (f *Font) WriteAnchor(dest draw.Image, text string, anchorX, anchorY int, anchor Anchor)