bdf

package
v0.0.0-...-0415e8f Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 License: MIT Imports: 5 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bdf

type Bdf struct {
	Chars    int
	Width    int
	Height   int
	Baseline int
	X_offset int
	// contains filtered or unexported fields
}

func Parse

func Parse(filename string) (*Bdf, error)

func (*Bdf) GetGlyph

func (font *Bdf) GetGlyph(c rune) Glyph

func (*Bdf) TextBitmap

func (font *Bdf) TextBitmap(text string) [][]bool

func (*Bdf) TextLength

func (font *Bdf) TextLength(text string) int

type Glyph

type Glyph struct {
	Width    int
	Height   int
	Y_offset int
	Bitmap   [][]bool
}

Jump to

Keyboard shortcuts

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