Versions in this module Expand all Collapse all v1 v1.0.8 Dec 18, 2023 Changes in this version + const HINTING_LIGHT + const HINTING_MONO + const HINTING_NONE + const HINTING_NORMAL + const STYLE_BOLD + const STYLE_ITALIC + const STYLE_NORMAL + const STYLE_STRIKETHROUGH + const STYLE_UNDERLINE + func ByteSwappedUnicode(swap bool) + func GetError() error + func Init() error + func Quit() + func SetError(err string) + func WasInit() bool + type Font struct + func OpenFont(file string, size int) (*Font, error) + func OpenFontIndex(file string, size int, index int) (*Font, error) + func OpenFontIndexRW(src *sdl.RWops, freesrc, size, index int) (*Font, error) + func OpenFontRW(src *sdl.RWops, freesrc, size int) (*Font, error) + func (f *Font) Ascent() int + func (f *Font) Close() + func (f *Font) Descent() int + func (f *Font) FaceFamilyName() string + func (f *Font) FaceIsFixedWidth() bool + func (f *Font) Faces() int + func (f *Font) GetHinting() int + func (f *Font) GetKerning() bool + func (f *Font) GetOutline() int + func (f *Font) GetStyle() int + func (f *Font) GlyphMetrics(ch rune) (*GlyphMetrics, error) + func (f *Font) Height() int + func (f *Font) LineSkip() int + func (f *Font) RenderUTF8Blended(text string, color sdl.Color) (*sdl.Surface, error) + func (f *Font) RenderUTF8BlendedWrapped(text string, fg sdl.Color, wrapLength int) (*sdl.Surface, error) + func (f *Font) RenderUTF8Shaded(text string, fg, bg sdl.Color) (*sdl.Surface, error) + func (f *Font) RenderUTF8Solid(text string, color sdl.Color) (*sdl.Surface, error) + func (f *Font) SetHinting(hinting int) + func (f *Font) SetKerning(allowed bool) + func (f *Font) SetOutline(outline int) + func (f *Font) SetStyle(style int) + func (f *Font) SizeUTF8(text string) (int, int, error) + type GlyphMetrics struct + Advance int + MaxX int + MaxY int + MinX int + MinY int