Skip to content

Enhancement: define a 12x24 Type-A font, for hexadecimal #33

@GoogleCodeExporter

Description

@GoogleCodeExporter
This is alpha quality code,
 which will need some consideration
 as to how it will be integrated,
 but I promise it is worth it !

On decent Epson printers, it should be possible to redefine the font, for the 
low-order 7-bit ASCII part of the character tables.

The demonstration script attached will change one of the Type-A fonts on the 
thermal printer.

Epson printers have at least two fonts. I picked type A, because of its evenly 
sized 12x24 character cells, which are easy to redefine as you will see.



Are you the kind of person that is bothered by base 10, but are not too 
enthused about alphanumeric hexadecimal?

I am; therefore, the first characters I substituted were:

 0-9, a-f.

I call my font, DashNibs;
 that is,
 it hangs on a dash,
 and each digit is one Nibble;
 i.e. formally known as "DashNibbles."



Try this example command on your LPT connected printer:

./demonstrate_glyphing.py 6 R 4

(my tm-h6000 on lpt template)
(roll paper, not slip)
(example 4; quad area ASCII table)



The USB port selection needs to be hacked for Linux. It should be possible to 
just use the default USB printer object in python-escpos. What you will see in 
my code, is a work-around for the USB Epson interface on FreeBSD systems.

LPT is easier; it will work, by renaming from lpt0 to lp0.

I have tested this successfully on the Epson TM-H5000II and Epson TM-H6000. I 
will pitch in a cleaner, portable version, when I have time later.

Original issue reported on code.google.com by syncma...@gmail.com on 15 Jun 2014 at 12:06

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions