Documentation
¶
Index ¶
- func AddAlias(font *Font, name string)
- type Font
- func GetFont(name string) *Font
- func LoadFont(reader io.Reader) *Font
- func LoadTextureFont(path, name string, minR, maxR rune, atlas *texture.TextureAtlas) *Font
- func LoadTextureFontMap(path, name string, chars map[string]rune, atlas *texture.TextureAtlas) *Font
- func LoadTextureFontMap2(chars map[rune]*texture.TextureRegion, overlap float64) *Font
- func (font *Font) Draw(renderer *batch.QuadBatch, x, y, size float64, text string)
- func (font *Font) DrawBg(v bool)
- func (font *Font) DrawMonospaced(renderer *batch.QuadBatch, x, y, size float64, text string)
- func (font *Font) DrawOrigin(renderer *batch.QuadBatch, x, y float64, origin vector.Vector2d, size float64, ...)
- func (font *Font) DrawOriginRotation(renderer *batch.QuadBatch, x, y float64, origin vector.Vector2d, ...)
- func (font *Font) DrawOriginRotationColor(renderer *batch.QuadBatch, x, y float64, origin vector.Vector2d, ...)
- func (font *Font) DrawOriginRotationColorV(renderer *batch.QuadBatch, position vector.Vector2d, origin vector.Vector2d, ...)
- func (font *Font) DrawOriginRotationV(renderer *batch.QuadBatch, position vector.Vector2d, origin vector.Vector2d, ...)
- func (font *Font) DrawOriginV(renderer *batch.QuadBatch, position vector.Vector2d, origin vector.Vector2d, ...)
- func (font *Font) GetAscent() float64
- func (font *Font) GetSize() float64
- func (font *Font) GetWidth(size float64, text string) float64
- func (font *Font) GetWidthMonospaced(size float64, text string) float64
- func (font *Font) SetBgBorderSize(size float64)
- func (font *Font) SetBgColor(color color2.Color)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Font ¶
type Font struct { Overlap float64 // contains filtered or unexported fields }
func LoadTextureFont ¶
func LoadTextureFont(path, name string, minR, maxR rune, atlas *texture.TextureAtlas) *Font
func LoadTextureFontMap ¶
func LoadTextureFontMap2 ¶
func LoadTextureFontMap2(chars map[rune]*texture.TextureRegion, overlap float64) *Font
func (*Font) DrawMonospaced ¶
func (*Font) DrawOrigin ¶
func (*Font) DrawOriginRotation ¶
func (*Font) DrawOriginRotationColor ¶
func (*Font) DrawOriginRotationColorV ¶
func (*Font) DrawOriginRotationV ¶
func (*Font) DrawOriginV ¶
func (*Font) GetWidthMonospaced ¶
func (*Font) SetBgBorderSize ¶
func (*Font) SetBgColor ¶
Click to show internal directories.
Click to hide internal directories.