Documentation ¶
Index ¶
- type BitFont
- type BitFontOpt
- type BitFontOptions
- func (BitFontOptions) AddRune(offset int, r rune) BitFontOpt
- func (BitFontOptions) AddString(offset int, s string) BitFontOpt
- func (BitFontOptions) Advance(d int) BitFontOpt
- func (BitFontOptions) Ascent(d int) BitFontOpt
- func (BitFontOptions) Bytes(data []byte) BitFontOpt
- func (BitFontOptions) Descent(d int) BitFontOpt
- func (BitFontOptions) Face(advance, ascent, descent int) BitFontOpt
- func (BitFontOptions) Height(d int) BitFontOpt
- func (BitFontOptions) Image(img image.Image) BitFontOpt
- func (BitFontOptions) Left(d int) BitFontOpt
- func (BitFontOptions) Range(offset int, low rune, high ...rune) BitFontOpt
- func (BitFontOptions) Size(w, h int) BitFontOpt
- func (BitFontOptions) Width(d int) BitFontOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitFont ¶
type BitFont struct {
Width, Height int
Advance, Ascent, Descent int
Left int
// contains filtered or unexported fields
}
func New ¶
func New(opts ...BitFontOpt) *BitFont
type BitFontOpt ¶
type BitFontOpt func(u *BitFont)
type BitFontOptions ¶
type BitFontOptions struct{}
var Options BitFontOptions
func (BitFontOptions) AddRune ¶
func (BitFontOptions) AddRune(offset int, r rune) BitFontOpt
func (BitFontOptions) AddString ¶
func (BitFontOptions) AddString(offset int, s string) BitFontOpt
func (BitFontOptions) Advance ¶
func (BitFontOptions) Advance(d int) BitFontOpt
func (BitFontOptions) Ascent ¶
func (BitFontOptions) Ascent(d int) BitFontOpt
func (BitFontOptions) Bytes ¶
func (BitFontOptions) Bytes(data []byte) BitFontOpt
func (BitFontOptions) Descent ¶
func (BitFontOptions) Descent(d int) BitFontOpt
func (BitFontOptions) Face ¶
func (BitFontOptions) Face(advance, ascent, descent int) BitFontOpt
func (BitFontOptions) Height ¶
func (BitFontOptions) Height(d int) BitFontOpt
func (BitFontOptions) Image ¶
func (BitFontOptions) Image(img image.Image) BitFontOpt
func (BitFontOptions) Left ¶
func (BitFontOptions) Left(d int) BitFontOpt
func (BitFontOptions) Range ¶
func (BitFontOptions) Range(offset int, low rune, high ...rune) BitFontOpt
func (BitFontOptions) Size ¶
func (BitFontOptions) Size(w, h int) BitFontOpt
func (BitFontOptions) Width ¶
func (BitFontOptions) Width(d int) BitFontOpt
Click to show internal directories.
Click to hide internal directories.