stbtruetype

package
v0.0.0-...-4a525b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRenderer

func NewRenderer(name string, fontData []byte, dpi int, height float64) (font.Renderer, error)

Types

type RendererStbTruetype

type RendererStbTruetype struct {
	font.Metrics
	// contains filtered or unexported fields
}

RendererStbTruetype is a font glyph renderer back by stb_truetype.

func (*RendererStbTruetype) GetGlyph

func (r *RendererStbTruetype) GetGlyph(char rune) (*font.Glyph, error)

func (*RendererStbTruetype) GetMetrics

func (r *RendererStbTruetype) GetMetrics() *font.Metrics

func (*RendererStbTruetype) GetName

func (r *RendererStbTruetype) GetName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL