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

Avoid breaking words and "advanced" aligning options #47

Closed kickbk closed 2 years ago

kickbk commented 2 years ago

Is there a way to stop the library from breaking a word? Right now it prints something like:

Hello I am a test wh
ich should not break

I'm trying to print a table of payment breakdown, so are there options to:

  1. Create a horizontal line across? I mean something like -------------------- but not a collection of dashes and from the left to the right
  2. Is there a way, on a single line, to align some text to the left and other text to the right, so it prints something like this, but imagine it is stretches from the left to the right
    -------------------------------------------
    Price                                $90.00
kickbk commented 2 years ago

answered in https://github.com/star-micronics/react-native-star-io10/issues/13