threez / go-dosfont

Open DOS bitmap font (MZ file format, PSF)

Repository from Github https://github.comthreez/go-dosfontRepository from Github https://github.comthreez/go-dosfont

go-dosfont

Implementation of the PSF/MZ font file format. With this library you can use the old dos bitmap fonts in go.

Example

fonts, err := OpenFonts("fonts/NEW1252.FON")

// use font face fonts[i].Face
// of type golang.org/x/image/font/basicfont.Face

Rendering

fonts/NEW1252.FON.png

TODO

  • Implementation of the PE format

Resources

Other resources for implementing the font lib.

Implementations / Documentation

Test fonts

The fonts used for testing are sourced from https://www.uwe-sieber.de/dosfon.html. Thanks for your free font Uwe Sieber.

About

Open DOS bitmap font (MZ file format, PSF)

License:Apache License 2.0


Languages

Language:Go 99.8%Language:Makefile 0.2%