star-micronics / react-native-star-io10

react-native-star-io10 is a library for supporting application development for Star Micronics devices.
Other
83 stars 54 forks source link

Font size #66

Closed veljko1992 closed 2 years ago

veljko1992 commented 2 years ago

How can I set the font size on the TSP654II printer? I did it with style Magnification, but between 1 and 2 is a huge difference.

gare-bear commented 2 years ago

You can set the font using styleFont(StarXpandCommand.Printer.FontType). Then you can specify one of the printers built-in fonts; FontA or FontB. Font A is the default, Font B is slightly smaller.

Reference

yongmin86k commented 2 years ago

Is there a way to decrease the size than magnification 1 of FontB?

gare-bear commented 2 years ago

@yongmin86k unfortunately no. Font B is our smallest font, and 1x magnification is also the smallest. If those options are still too big, then you should create your receipts graphically, which would allow you to set the font & size at runtime.