Versions in this module Expand all Collapse all v3 v3.1.0 Jun 30, 2019 Changes in this version + func CombineErrors(history, latest error) error + func ExclusiveNor(args ...bool) bool + func ExclusiveOr(args ...bool) bool + func ExtractFloat(raw, name string, props map[string][]string) (float64, map[string][]string, error) + func ExtractInt(raw, name string, props map[string][]string) (int, map[string][]string, error) + func ExtractString(raw, name string, props map[string][]string) (string, map[string][]string, error) + func LoadFontFile(fs vfs.FileSystem, fileName interface{}) (*truetype.Font, error) + func ParseColourStrings(colours ColourStrings, prefix string, inputProps map[string][]string) (color.NRGBA, map[string][]string, error) + func ParseFont(fontName, fileName, url string, opts ParseFontOptions) (*truetype.Font, map[string][]string, error) + func ParsePoint(x, y, xName, yName string, props map[string][]string) (image.Point, map[string][]string, error) + func ScaleFontsToWidth(currentSize float64, currentWidth, maxWidth int, alignment TextAlignment) (newSize float64, alignmentOffset int) + func SetBool(value interface{}) (bool, error) + func SetColour(value interface{}) (color.Color, error) + func SetFloat64(value interface{}) (float64, error) + func SetImage(value interface{}) (image.Image, error) + func SetInt(value interface{}) (int, error) + func SetString(value interface{}) (string, error) + func SetTime(value interface{}) (time.Time, error) + func SetTimePointer(value interface{}) (*time.Time, error) + func SetUint8(value interface{}) (uint8, error) + type ColourStrings struct + A string + B string + G string + R string + type ParseFontOptions struct + FileSystem vfs.FileSystem + FontPool gosysfonts.Pool + Props map[string][]string + type TextAlignment int + const TextAlignmentCentre + const TextAlignmentLeft + const TextAlignmentRight + func ExtractTextAlignment(raw, name string, props map[string][]string) (TextAlignment, map[string][]string, error) + func StringToAlignment(alignment string) (converted TextAlignment)