Implementation of the PSF/MZ font file format. With this library you can use the old dos bitmap fonts in go.
fonts, err := OpenFonts("fonts/NEW1252.FON")
// use font face fonts[i].Face
// of type golang.org/x/image/font/basicfont.Face
- Implementation of the PE format
Other resources for implementing the font lib.
- https://www.seasip.info/Unix/PSF/
- https://www.lowlevel.eu/wiki/
- https://www.win.tue.nl/~aeb/linux/kbd/font-formats-1.html
- Microsoft_Portable_Executable_and_Common_Object_File_Format
- https://de.wikipedia.org/wiki/MZ-Datei
- http://www.delorie.com/djgpp/doc/exe/
- https://www.chiark.greenend.org.uk/~sgtatham/fonts/
- https://github.com/golang/image/blob/master/font/inconsolata/regular8x16.go
- https://fontforge.github.io/en-US/
The fonts used for testing are sourced from https://www.uwe-sieber.de/dosfon.html. Thanks for your free font Uwe Sieber.