https://github.com/rusq/fontpic
Generate images with text using CGA/EGA/VGA ROM fonts.
https://github.com/rusq/fontpic
cga dos ega fonts golang ibm image vga
Last synced: 3 months ago
JSON representation
Generate images with text using CGA/EGA/VGA ROM fonts.
- Host: GitHub
- URL: https://github.com/rusq/fontpic
- Owner: rusq
- License: bsd-3-clause
- Created: 2023-08-03T23:25:49.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-07T21:08:51.000Z (11 months ago)
- Last Synced: 2025-03-28T10:18:10.528Z (7 months ago)
- Topics: cga, dos, ega, fonts, golang, ibm, image, vga
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fontpic
Goal of the project - allow to easily generate images with text using widely
available CGA/EGA/VGA ROM fonts. This can be useful for generating captcha
images for website or telegram chats.It comes with 8x8, 8x14 and 8x16 fonts in DOS 866 (Cyrillic) encoding in
[fnt](/fnt) directory. Font files 08x08.fnt, 08x14.fnt, 08x16.fnt were
distributed with the freeware [KeyRus program][1], and are used in this
library by default as a tribute to Dmitry Gurtyak (1971-1998), author of
KeyRus.Currenly the project supports only raw font files, it's easy to tell if it's
a raw FNT by looking at the file size:- 8x8 - 2048 bytes
- 8x14 - 3584 bytes
- 8x16 - 4096 bytes## Where to get more fonts
1. There is a great project that contains a lot of fonts extracted from
different ROMs: [romfont][2]
2. Extract fonts from a BIOS of the old PC. Read the [romfont][2] repository
README.
3. Unpack fonts from the Abandonware programs. I.e. DOS distribution includes
'*.CPI' files that contain fonts. You can use [psf2inc][3] utility to
extract them. If you went down that path, you'd probably know what to do
with the output.
4. Convert BDF fonts.## Licensing
BSD 3-clause. See [LICENSE](/LICENSE).
Included fonts are freeware (c) Dmitry Gurtyak.
- fnt/microfnt.fnt - GPL2+ font by mibi88 (generated from [source][4])
- Robotron Font - (c) Nikita Zimin, https://github.com/nzeemin[1]: https://en.wikipedia.org/wiki/KeyRus
[2]: https://github.com/spacerace/romfont
[3]: https://www.mankier.com/1/psf2inc
[4]: https://git.planet-casio.com/mibi88/microfont/src/branch/master/microfont.png