Versions in this module Expand all Collapse all v0 v0.1.2 Nov 28, 2018 v0.1.1 Jan 7, 2018 Changes in this version + var SupportedFonts = []string + var SupportedImages = []string + func BoxesToSizes(boxes []Box) []image.Point + func PlaceBoxes(maxContextSize image.Point, rule maxrect.Rule, boxes []Box) (contextSize image.Point, ok bool) + func SortBoxes(boxes []Box) + type Box struct + Name string + Padding int + Place *image.Rectangle + Size image.Point + type Font struct + Face font.Face + Font *truetype.Font + Glyphs map[rune]*Glyph + Kern map[[2]rune]fixed.Int26_6 + MaxBounds fixed.Rectangle26_6 + Name string + Padding int + func LoadFont(name, filename string, fontSize int) (*Font, error) + func (font *Font) Boxes() []Box + func (font *Font) Draw(m draw.Image) + func (font *Font) Include(r rune) bool + func (font *Font) IncludeAscii() + func (font *Font) IncludeExtendedAscii() + func (font *Font) IncludeString(s string) + type Glyph struct + Advance fixed.Int26_6 + Bounds fixed.Rectangle26_6 + Place image.Rectangle + Rune rune + Size image.Point + type Image struct + Animated bool + Data image.Image + Delay int + Index int + Name string + Padding int + Place image.Rectangle + Rotated bool + SDF bool + Size image.Point + func LoadImage(name, filename string) (*Image, error) + func (m *Image) Box() Box + func (m *Image) Draw(dst draw.Image)