Hello,
it is possible to print characters with a big font size?
How can I do it?
thanks
Printing big font size with thermal printer
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Printing big font size with thermal printer
Out library supports three font sizes: small, medium, and large. Small is the normal size, medium is double height, and large is double height and double width.
-
- Posts: 4
- Joined: Thu Oct 31, 2013 9:29 am
Re: Printing big font size with thermal printer
and what about "define user-defined character", that is described in manual? Isn't it possible by this way?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Printing big font size with thermal printer
User-defined characters would be normal (i.e., "small") size. Your only option would be to define bitmaps for really large characters.
-
- Posts: 4
- Joined: Thu Oct 31, 2013 9:29 am
Re: Printing big font size with thermal printer
thanks for your responses.
could you tell me where can I find a simple sample or tuto for know how to do it?
and I need to know also if is possible print two images in the same line. any sample?
thanks a lot.
could you tell me where can I find a simple sample or tuto for know how to do it?
and I need to know also if is possible print two images in the same line. any sample?
thanks a lot.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Printing big font size with thermal printer
Our tutorial on printing mitmaps is here:
http://learn.adafruit.com/mini-thermal- ... p-printing
http://learn.adafruit.com/mini-thermal- ... p-printing
- wado
- Posts: 3
- Joined: Sun Aug 20, 2017 9:43 pm
Re: Printing big font size with thermal printer
Hi dboira did you solve this??? PRINTING BIG FONT SIZE WITH THERMAL PRINTER
I have the same problem. and I can not print two bitmap in the same line.
plase help !!
I have the same problem. and I can not print two bitmap in the same line.
plase help !!
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Printing big font size with thermal printer
Instructions for printing large text are here:
https://learn.adafruit.com/mini-thermal ... nd-bitmaps
https://learn.adafruit.com/mini-thermal ... nd-bitmaps
- wado
- Posts: 3
- Joined: Sun Aug 20, 2017 9:43 pm
Re: Printing big font size with thermal printer
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!!.
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!!.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Printing big font size with thermal printer
The library can't print two bitmaps side-by-side. You would have to somehow merge them into a single bitmap and print that.
charHeight and maxColumn are not sent to the printer. They are only used internally by the library. The size value is what controls the print size. You can get the next available character size by setting size to 0x22.
Code: Select all
case 'L': // Large: double width and height
size = 0x11;
charHeight = 48; //tried change this value
maxColumn = 16; //tried change this value
break;
- wado
- Posts: 3
- Joined: Sun Aug 20, 2017 9:43 pm
Re: Printing big font size with thermal printer
great!! thank you very much!!, I put 0x64 that is the size what I need, and works perfect!! thank you!!
Please be positive and constructive with your questions and comments.