Printing big font size with thermal printer

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
dboira
 
Posts: 4
Joined: Thu Oct 31, 2013 9:29 am

Printing big font size with thermal printer

Post by dboira »

Hello,
it is possible to print characters with a big font size?
How can I do it?

thanks

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Printing big font size with thermal printer

Post by adafruit_support_rick »

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.

dboira
 
Posts: 4
Joined: Thu Oct 31, 2013 9:29 am

Re: Printing big font size with thermal printer

Post by dboira »

and what about "define user-defined character", that is described in manual? Isn't it possible by this way?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Printing big font size with thermal printer

Post by adafruit_support_rick »

User-defined characters would be normal (i.e., "small") size. Your only option would be to define bitmaps for really large characters.

dboira
 
Posts: 4
Joined: Thu Oct 31, 2013 9:29 am

Re: Printing big font size with thermal printer

Post by dboira »

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.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Printing big font size with thermal printer

Post by adafruit_support_rick »

Our tutorial on printing mitmaps is here:
http://learn.adafruit.com/mini-thermal- ... p-printing

User avatar
wado
 
Posts: 3
Joined: Sun Aug 20, 2017 9:43 pm

Re: Printing big font size with thermal printer

Post by wado »

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 !!

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Printing big font size with thermal printer

Post by adafruit_support_rick »

Instructions for printing large text are here:
https://learn.adafruit.com/mini-thermal ... nd-bitmaps

User avatar
wado
 
Posts: 3
Joined: Sun Aug 20, 2017 9:43 pm

Re: Printing big font size with thermal printer

Post by wado »

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!!.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Printing big font size with thermal printer

Post by adafruit_support_rick »

The library can't print two bitmaps side-by-side. You would have to somehow merge them into a single bitmap and print that.

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;
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.

User avatar
wado
 
Posts: 3
Joined: Sun Aug 20, 2017 9:43 pm

Re: Printing big font size with thermal printer

Post by wado »

great!! thank you very much!!, I put 0x64 that is the size what I need, and works perfect!! thank you!!

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”