Please be aware of all shipping deadlines before placing your order - we cannot guarantee orders will arrive before Christmas!

Thermal Printer: Font-B and Upside Down
Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Thermal Printer: Font-B and Upside Down

by marsman12019 on Mon Oct 21, 2013 5:03 pm

In your python library for the Thermal Printer, there's no support for Font-B. I was wondering if you were planning on adding that any time soon?

I managed to get it to work with

Code: Select all | TOGGLE FULL SIZE
def fontBOn(self):
      self.writeBytes(27, 33, 1)

def fontBOff(self):
      self.writeBytes(27, 33, 0)

to turn it on and off, but your

Code: Select all | TOGGLE FULL SIZE
self.setPrintMode(self.MASK)

code is much prettier (and beyond me).

Also, when I try to upside-down Font-B, it won't flip, even though the rest of the text (Font-A, I guess) does. Am I SOL here, or is there something I'm missing?

Thanks in advance for the help!
marsman12019
 
Posts: 10
Joined: Wed Jan 18, 2012 1:02 am