Re: Printing big font size with thermal printer
by wado on Mon Aug 21, 2017 9:48 am
I already seen that before, but isn't that I need, because I'm developing a turner system, and I need to print a letter and a number very big in the middle off the paper.
I drew bitmap for letters A, B, C, and numbers 0 to 9. the problem is that I can't unify the letter with the number in the same line.
then I also tried modify the Adafruit_Thermal.cpp to get size L more bigger. but unfortunatly I couln't.
this is I tried.
printer.feed(2);
printer.justify('C');
printer.setSize('S');
printer.println(commerce);
printer.justify('C');
printer.setSize('S');
printer.println(city);
printer.print(rtc.getDateStr());
printer.feed(2);
printer.printBitmap(160, 96, logo_letterA);
printer.printBitmap(32, 98, logo_number1);
printer.feed(2);
but the result was:
commerce
city
date
A -
1
And I want to get this:
commerce
city
date
A -1
And I also tried to modify this part off Adafruit_Thermal.cpp to get size L more bigger:
void Adafruit_Thermal::setSize(char value){
uint8_t size;
switch(toupper(value)) {
default: // Small: standard width and height
size = 0x00;
charHeight = 24;
maxColumn = 32;
break;
case 'M': // Medium: double height
size = 0x01;
charHeight = 48;
maxColumn = 32;
break;
case 'L': // Large: double width and height
size = 0x11;
charHeight = 48; //tried change this value
maxColumn = 16; //tried change this value
break;
}
but does'n has any changes.
So please anybody helpme??
thank you very much!!.