Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Family ¶
type Family struct { Name string CellWidth int CellHeight int TextureAtlas *textureatlas.TextureAtlas Regular *FontTextureAtlas Bold *FontTextureAtlas BoldItalic *FontTextureAtlas Italic *FontTextureAtlas }
type FontTextureAtlas ¶
type FontTextureAtlas struct {
// contains filtered or unexported fields
}
func NewFontTextureAtlas ¶
func NewFontTextureAtlas(renderer Renderer, textureAtlas *textureatlas.TextureAtlas) *FontTextureAtlas
func (*FontTextureAtlas) GetGlyph ¶
func (fta *FontTextureAtlas) GetGlyph(rune rune) *textureatlas.TextureItem
type Glyph ¶
type Glyph struct { Bitmap *[]byte BitmapWidth int BitmapHeight int TopBearing float64 LeftBearing float64 }
Glyph provides a glyph's bitmap, and associated metrics.
type NewRenderer ¶
NewRenderer creates a Renderer.
Click to show internal directories.
Click to hide internal directories.