0

Printing big font size with thermal printer
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Printing big font size with thermal printer

by dboira on Thu Oct 31, 2013 9:42 am

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

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

Re: Printing big font size with thermal printer

by adafruit_support_rick on Thu Oct 31, 2013 11:13 am

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.

adafruit_support_rick
 
Posts: 34749
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Printing big font size with thermal printer

by dboira on Thu Oct 31, 2013 11:32 am

and what about "define user-defined character", that is described in manual? Isn't it possible by this way?
dboira
 
Posts: 4
Joined: Thu Oct 31, 2013 9:29 am

Re: Printing big font size with thermal printer

by adafruit_support_rick on Thu Oct 31, 2013 12:40 pm

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

adafruit_support_rick
 
Posts: 34749
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Printing big font size with thermal printer

by dboira on Fri Nov 01, 2013 7:47 am

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.
dboira
 
Posts: 4
Joined: Thu Oct 31, 2013 9:29 am

Re: Printing big font size with thermal printer

by adafruit_support_rick on Sat Nov 02, 2013 12:01 pm

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

adafruit_support_rick
 
Posts: 34749
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Printing big font size with thermal printer

by wado on Sun Aug 20, 2017 9:45 pm

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

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

Re: Printing big font size with thermal printer

by adafruit_support_rick on Mon Aug 21, 2017 8:06 am

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

adafruit_support_rick
 
Posts: 34749
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

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

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

Re: Printing big font size with thermal printer

by adafruit_support_rick on Mon Aug 21, 2017 12:35 pm

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 | TOGGLE FULL SIZE
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.

adafruit_support_rick
 
Posts: 34749
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Printing big font size with thermal printer

by wado on Tue Aug 22, 2017 2:05 pm

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

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

Please be positive and constructive with your questions and comments.