Skip to content
/ fontpic Public

Generate images with text using CGA/EGA/VGA ROM fonts.

License

Notifications You must be signed in to change notification settings

rusq/fontpic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 directory. Font files 08x08.fnt, 08x14.fnt, 08x16.fnt were distributed with the freeware KeyRus program, 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. Extract fonts from a BIOS of the old PC. Read the romfont repository README.
  3. Unpack fonts from the Abandonware programs. I.e. DOS distribution includes '*.CPI' files that contain fonts. You can use psf2inc 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.

Included fonts are freeware (c) Dmitry Gurtyak.

About

Generate images with text using CGA/EGA/VGA ROM fonts.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages