Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/threez/go-dosfont
Open DOS bitmap font (MZ file format, PSF)
https://github.com/threez/go-dosfont
bitmap dos fnt fon font mz ne psf
Last synced: about 2 months ago
JSON representation
Open DOS bitmap font (MZ file format, PSF)
- Host: GitHub
- URL: https://github.com/threez/go-dosfont
- Owner: threez
- License: apache-2.0
- Created: 2019-06-07T16:16:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-04T10:22:31.000Z (over 5 years ago)
- Last Synced: 2024-10-08T21:40:58.068Z (4 months ago)
- Topics: bitmap, dos, fnt, fon, font, mz, ne, psf
- Language: Go
- Homepage:
- Size: 55.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](fonts/NEW1252.FON.png)
# TODO
* Implementation of the PE format
# Resources
Other resources for implementing the font lib.
## Implementations / Documentation
* 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/## Test fonts
The fonts used for testing are sourced from https://www.uwe-sieber.de/dosfon.html. Thanks for your free font Uwe Sieber.