Skip to content

SteelSeries/unifont

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.