Versions in this module Expand all Collapse all v0 v0.1.0 Jul 14, 2021 Changes in this version + type BitmapFont struct + Descriptor *Descriptor + PageSheets map[int]image.Image + func Load(path string) (f *BitmapFont, err error) + func Read(r io.Reader, sheets SheetReaderFunc) (f *BitmapFont, err error) + func (f *BitmapFont) DrawText(dst draw.Image, pos image.Point, text string) + func (f *BitmapFont) MeasureText(text string) image.Rectangle + type Channel int + const All + const Alpha + const Blue + const Green + const Red + type ChannelInfo int + const Glyph + const GlyphAndOutline + const One + const Outline + const Zero + type Char struct + Channel Channel + Height int + ID rune + Page int + Width int + X int + XAdvance int + XOffset int + Y int + YOffset int + func (c *Char) Bounds() image.Rectangle + func (c *Char) Offset() image.Point + func (c *Char) Pos() image.Point + func (c *Char) Size() image.Point + type CharPair struct + First rune + Second rune + type Common struct + AlphaChannel ChannelInfo + Base int + BlueChannel ChannelInfo + GreenChannel ChannelInfo + LineHeight int + Packed bool + RedChannel ChannelInfo + ScaleH int + ScaleW int + func (c *Common) Scale() image.Point + type Descriptor struct + Chars map[rune]Char + Common Common + Info Info + Kerning map[CharPair]Kerning + Pages map[int]Page + func LoadDescriptor(path string) (d *Descriptor, err error) + func ReadDescriptor(r io.Reader) (d *Descriptor, err error) + type Info struct + AA int + Bold bool + Charset string + Face string + Italic bool + Outline int + Padding Padding + Size int + Smooth bool + Spacing Spacing + StretchH int + Unicode bool + type Kerning struct + Amount int + type Padding struct + Down int + Left int + Right int + Up int + type Page struct + File string + ID int + type SheetReaderFunc func(filename string) (io.ReadCloser, error) + type Spacing struct + Horizontal int + Vertical int