question

kirank avatar image
kirank asked kirank commented

Print with Mono space font

Hello,
We are looking to print receipts using TextPrintJob but the default font is not a fixed space font. How can we change the font to a fixed space font like Courier New.

I have found another question related to this: https://community.clover.com/questions/15414/printing-on-flex-with-monospace-font.html

using View Print Job is possible, but we are trying to avoid using a relatively complex solution like View Print Job.
Print
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jeffrey Blattman avatar image
Jeffrey Blattman answered kirank commented
You cannot change the font w/ TextPrintJob. If all you want to do is change the font, it should be as simple as using ViewPrintJob with one view: a text view with it's font face set, and use newlines in the text for line breaks.

I hear what you are saying, but the idea is to have something dead simple (TextPrintJob) and a catch-all that allows anything (ViewPrintJob).
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thanks. We'll switch to ViewPrintJob.

0 Likes 0 ·

Welcome to the
Clover Developer Community