font

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(img image.Image, fontData []byte) error

Load gets non-zero pixels from the font sheet and converts them to font data understood by π. The result is inserted into fontData slice.

Img must be 128x128. Each char is 8x8. Char 0 is in the top-left corner. Char 1 to the right.

fontData must have length of 2048.

Types

This section is empty.

Jump to

Keyboard shortcuts

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