Versions in this module Expand all Collapse all v0 v0.8.0 Aug 1, 2024 Changes in this version type Text + func (t Text) ActualWidth() float32 v0.7.0 Mar 12, 2024 Changes in this version type Text + func (t Text) Centered() Text v0.6.0 Mar 9, 2024 v0.5.1 Mar 9, 2024 v0.5.0 Mar 9, 2024 Changes in this version + type OpenGLFont struct + func NewOpenGLFont(fntFilename, imageFilename string) (*OpenGLFont, error) + func (f *OpenGLFont) Delete() + type OpenGLTextureBuilder struct + func NewTextureBuilder() OpenGLTextureBuilder + func (r OpenGLTextureBuilder) BuildFromFile(filename string) (uint32, error) v0.4.0 Mar 7, 2024 Changes in this version + type FontReader struct + func NewFontReader() *FontReader + func (r *FontReader) ReadFile(filename string) (*Font, error) type Text + Texture uint32 + type TextureReader struct + func NewTextureReader() TextureReader + func (r TextureReader) ReadFile(filename string) (uint32, error) v0.3.0 Mar 7, 2024 v0.2.0 Mar 6, 2024 Changes in this version type Reader + func NewReader() Reader v0.1.0 Feb 26, 2024 Changes in this version + type Char struct + Channel int + Height float32 + Id uint8 + Letter string + Page int + Width float32 + X float32 + Xadvance float32 + Xoffset float32 + Y float32 + Yoffset float32 + func BuildChar(kvs map[string]value) Char + type Common struct + AlphaChnl int + Base int + BlueChnl int + GreenChnl int + LineHeight float32 + Packed int + Pages int + RedChnl int + ScaleH float32 + ScaleW float32 + func BuildCommon(kvs map[string]value) Common + type Font struct + Common Common + func NewFont() *Font + func (f *Font) AmountBetween(left, right uint8) float32 + func (f *Font) Base() float32 + func (f *Font) CharAt(c uint8) Char + func (f *Font) LineHeight() float32 + func (f *Font) Scales() (float32, float32) + func (f *Font) String() string + type Info struct + AA int + Bld bool + Charset string + Face string + Italic bool + Outline int + Padding []int + Size int + Smooth bool + Spacing []int + StretchH int + Unicode bool + func BuildInfo(kvs map[string]value) Info + type Kerning struct + Amount float32 + First uint8 + Second uint8 + func BuildKerning(kvs map[string]value) Kerning + type Page struct + File string + Id int + func BuildPage(kvs map[string]value) Page + type Reader struct + func (r *Reader) Read(filename string) error + func (r Reader) Font() *Font + type Text struct + Font *Font + Height float32 + Text string + Width float32 + X float32 + Y float32 + func NewText(text string, x, y, width, height float32, font *Font) Text + func (t Text) Render(callback func([]TextureVertex)) + type TextureVertex struct + S float32 + T float32 + X float32 + Y float32