Versions in this module Expand all Collapse all v0 v0.0.1 Dec 12, 2023 Changes in this version + const MARGIN_PER_LINE + const MIN_CHAR_NUM_IN_LINE + func CalculateFontSize(maxChatNumInOneLine int, width int) float64 + func Export(imgBytes []byte, filePath string) error + func Generate(text string, width int, height int, fontColor string, externalFontPath string, ...) ([]byte, error) + func GenerateRandomHexColor() (string, error) + func LoadFont(fontSize float64, externalFontFilePath string) (font.Face, error) + func ParseHexColor(s string) (c color.RGBA, err error)