Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 626 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 626 Bytes

unifont

Go Reference

A go library for using GNU Unifont with Go. Implements the golang.org/x/image/font.Face interface for using with that package.

Use

import "github.com/steelseries/unifont"

...

uf, err := unifont.ParseHexFile("unifont.hex")
if err != nil {
    panic(err)
}

face, err := unifont.NewFace(uf, 1)
if err != nil {
    panic(err)
}

// use face like any other font.Face, with font.Drawer/etc.