I'm trying to emulate a receipt printer in HTML/CSS for templating the receipt. The printer, typical Epson ESC/POS printer, has the ability to print double-tall, double-wide, or both.
This all needs to be a monospace font, as the printer has 40 columns in normal, and 20 columns in double-wide or double-wide/tall. The Double-wide/tall isn't a problem, I can just double the size of the font in CSS, and both dimensions scale. This is further complicated by a separate bold function.
Does anybody have suggestions? A particular font that supports this? HTML/CSS abilities to replicate this?
I have tried:
font-stretch: - only works with certain fonts, only narrow/normal as best as I can tell. I haven't found any monospace fonts with a narrow typeface.transform:scale(): works, but is referenced to the center of the object, so I would have to get the rendered size, then shift it, and adjust the line-height. I sure wish scale had a third parameter that specified the reference point.- Various other fonts: I have looked, but haven't found any, either which have various typefaces, or that I could combine, like a double-wide font that's close enough to a standard monospace font.
- Custom font: sounds plausible but more than I want to take on.
Anything easier than transform:scale()?
Edit:
Here is a picture, accomplished with courier 16px, courier 32px, and scale(2,1), and scale(1,2), but I had to move the double wide text with a translate(27px).

The jsfiddle that created the image: http://jsfiddle.net/ja7br/