star-micronics / StarPRNT-SDK-Android-Java

StarPRNT SDK for Android including libraries for supporting application development for Star printers.
https://www.star-m.jp/products/s_print/sdk/starprnt_sdk/manual/android_java/en/index.html
Other
15 stars 4 forks source link

Can I print text as italic? #6

Closed vuduongopn closed 2 years ago

vuduongopn commented 2 years ago

Hello developer,

I am using your SDK in my application for printers. But I don't know how to print text as italic. I don't know if the library supports this? Please let me know.

Thank you so much.

gare-bear commented 2 years ago

@vuduongopn Star printers cannot natively print in italic. They do support some basic formatting options like inverted text (white text on black background), bold, and underline, but unfortunately not italic.

That being said, you can create your receipt as an image and use an italic font when drawing your text. Then add the resulting Bitmap to an ICommandBuilder object using the appendBitmap method.