/go-dosfont

Open DOS bitmap font (MZ file format, PSF)

Primary LanguageGoApache License 2.0Apache-2.0

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.