Versions in this module Expand all Collapse all v0 v0.3.0 Nov 30, 2026 v0.2.0 Nov 30, 2026 v0.1.12 Nov 28, 2026 v0.1.11 Nov 26, 2026 v0.1.10 Nov 23, 2026 v0.1.9 Nov 21, 2026 v0.1.8 Nov 20, 2026 v0.1.7 Nov 14, 2026 v0.1.6 Nov 13, 2026 v0.1.5 Nov 12, 2026 v0.1.4 Nov 11, 2026 v0.1.3 Nov 9, 2026 v0.1.2 Nov 9, 2026 Changes in this version + type Font struct + func DefaultFont() *Font + func LoadFont(data []byte) (*Font, error) + func NewFont(face *font.Face) *Font + func (f *Font) Dispose() error + func (f *Font) FontFace(size, dpi float64) *font.ScaledFace + func (f *Font) GlyphCache(size, dpi float64) *GlyphCache + func (f *Font) Italic() *Font + func (f *Font) MeasureString(face *font.ScaledFace, value string) (int, int, int) + type Glyph struct + Advance float32 + Atlas int32 + Height int32 + OffsetX float32 + OffsetY float32 + Rune rune + Width int32 + X int32 + Y int32 + func (g Glyph) KeepAlive(canvas *graphics.Canvas2D) + func (g Glyph) RGBA() bool + func (g Glyph) Visible() bool + type GlyphCache struct + func NewGlyphCache(f *Font, size, dpi float64) *GlyphCache + func (c *GlyphCache) Atlas(index int32) (*graphics.Texture, bool) + func (c *GlyphCache) AtlasCount() int + func (c *GlyphCache) Dispose() error + func (c *GlyphCache) FlushUploads() + func (c *GlyphCache) Glyph(r rune) Glyph + func (c *GlyphCache) GlyphAt(r rune, phaseX, phaseY uint8) Glyph + func (c *GlyphCache) GlyphGrayAt(r rune, phaseX, phaseY uint8, color font.LCDColor) Glyph + func (c *GlyphCache) GlyphLCDAt(r rune, phaseX uint8) Glyph + func (c *GlyphCache) GlyphLCDColorAt(r rune, phaseX uint8, color font.LCDColor) Glyph + func (c *GlyphCache) GlyphMetrics(r rune) Glyph + func (c *GlyphCache) GlyphWithReference(r rune) (Glyph, GlyphRef) + func (c *GlyphCache) Kern(prev, curr rune) float32 + func (c *GlyphCache) Metrics() font.Metrics + func (c *GlyphCache) OutlineGlyph(r rune, width float32) Glyph + func (c *GlyphCache) OutlineWithReference(r rune, width float32) GlyphRef + type GlyphRef struct + func (ref GlyphRef) Glyph() Glyph