question

datatrax avatar image
datatrax asked Jeffrey Blattman answered

We need to print our own receipts containinbg text with different font sizes. How can we set up fixed font?

DataTrax asks a question
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
You can print your own receipts. See the com.clover.sdk.printer.job package in the SDK. If you use the standard Clover receipt print jobs such as StaticOrderReceiptPrintJob or StaticPaymentPrintJob they use stock formatting and font sizes and you can't change that.

You can use ViewPrintJob or ImagePrintJob to design your own receipts. Those print an Android view or a bitmap to the receipt, respectively.

The receipts printed by Clover apps use stock formatting and fonts. You cannot change that.
10 |2000

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

Welcome to the
Clover Developer Community