Versions in this module Expand all Collapse all v0 v0.1.0 Oct 20, 2023 Changes in this version + func BgColor(color *image.Uniform) textDrawOption + func BgHexColor(hex string) textDrawOption + func BoxAlign(align box.Align) textDrawOption + func BoxPadding(bp config.Padding) textDrawOption + func BoxSpacing(px int) textDrawOption + func FgColor(color *image.Uniform) textDrawOption + func FgHexColor(hex string) textDrawOption + func FontFace(ff font.Face) textDrawOption + func FontFaceFromFFA(ffa *fontfamily.FontFamily, style fontfamily.Style, size float64) textDrawOption + func Hex(hex string) (*image.Uniform, error) + func LineSpacing(px int) textDrawOption + func LoadFromFile(filename string) (image.Image, error) + func MaxWidth(max int) textDrawOption + func SaveAsPNG(filename string, img image.Image) error + type Canvas struct + func CreateCanvasFromImage(tpl image.Image) (*Canvas, error) + func (c *Canvas) DrawBoxTexts(texts []string, start config.Point, opts ...textDrawOption) error + func (c *Canvas) DrawTextAtPoint(text string, start config.Point, opts ...textDrawOption) error + func (c *Canvas) SaveAsPNG(filename string) error