Versions in this module Expand all Collapse all v0 v0.1.1 Jan 8, 2023 v0.1.0 Jan 18, 2020 Changes in this version + func GetError() error + func Init() error + func Quit() + func RenderUTF8Blended(font *Font, text string, fg sdl.Color) (*sdl.Surface, error) + func WasInit() bool + type Destroyable interface + Destroy func() + type Font C.struct_TTF_Font + func OpenFont(file string, size int) (*Font, error) + func OpenFontIndex(file string, size int, index int) (*Font, error) + func OpenFontRW(src *sdl.RWOps, freeSrc bool, 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) FaceStyleName() string + func (f *Font) Faces() int + func (f *Font) GlyphIsProvided(glyph rune) int + func (f *Font) GlyphMetrics(glyph rune) (minX, maxX, minY, maxY, advance int, err error) + func (f *Font) Height() int + func (f *Font) Hinting() FontHinting + func (f *Font) Kerning() int + func (f *Font) LineSkip() int + func (f *Font) Outline() int + func (f *Font) SizeText(text string) (w, h int, err error) + func (f *Font) SizeUTF8(text string) (w, h int, err error) + func (f *Font) SizeUnicode(text string) (w, h int, err error) + func (f *Font) Style() FontStyle + func (f *Font) WithHinting(hinting FontHinting) + func (f *Font) WithKerning(kerning int) + func (f *Font) WithOutline(outline int) + func (f *Font) WithStyle(style FontStyle) + type FontHinting int + const HintingLight + const HintingMono + const HintingNone + const HintingNormal + type FontStyle int + const StyleBold + const StyleItalic + const StyleNormal + const StyleStrikethrough + const StyleUnderline