First post, by Fizzban
- Rank
- Newbie
I proudly present: The beta version of my dot-matrix printer emulation..
Main features:
- Support for most ESC/P commands
- Sans Serif, Roman, Courier and script font
- Bold, italic, superscript, subscript, condensed, double-width, double-height
- Different font sizes
- Underline, strikethrough, overscore (single, double, broken score)
- Bit graphics from 60x60 to 360x360 dpi
It does not emulate a specific printer but picking any 24-pin printer from EPSON should work.
The emulation uses Freetype2 and GPL'ed TrueType-fonts to "print" the text. It creates a surface in the main memory that acts as page. At the default settings, this is a 8.5''x11'' page at 360 dpi leading to a surface size of around 11.5 MB. This shouldn't be a problem but if you are low on RAM, try to reduce the dpi setting in dosbox.conf to 240 or 180 dpi.
Attached is a compiled version of the printer-enabled DOSBOX and its sources. If you want to compile it for yourself, you must download and install the FreeType2 library. The configure-script created by autogen.sh will automatically find and use it.
Currently, as soon as one page is done, it will be dumped as page.bmp in the DOSBOX directory. Of course, in the future I plan to send it directly to an actual printer.
EDIT: See my posting below for the files