You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great library! I'm personally only interested in generating digital receipts, without the need of the printer, through the API.
I wasn't sure which options actually allow to set the width and increase spacing, just like https://receiptline.github.io/designer/? Would that be done through character limitation only? Also, is there a way to set a specific font during render (e.g., <span style="font-family:Papyrus; font-size:4em;">Thanks!</span>)? I'm trying to make it look a bit more alike with the US & CA standard.
The text was updated successfully, but these errors were encountered:
sabatale
changed the title
Options for dots/cpl and spacing
Question - Options for dots/cpl and spacing
Sep 12, 2022
sabatale
changed the title
Question - Options for dots/cpl and spacing
Question - API options for dots/cpl and spacing
Sep 12, 2022
The option to set the width is -c <characters per line>.
The typical model, Epson TM-T88 series, has 42 characters per line. (resolution: 180 dpi)
Some models for Asian languages and some models for mPOS may have 48 characters per line. (resolution: 203 dpi)
The above values are for a paper width of 80 mm.
The option to adjust space is -s. (paper saving)
By default, spacing is enabled.
To set a specific font, it is better to output in SVG and replace the font setting string.
(or change the source code of lib/receiptline.js in the receiptline package)
Traditional monospaced fonts (width : height = 1 : 2) are less common now, so it's hard to adjust.
Great library! I'm personally only interested in generating digital receipts, without the need of the printer, through the API.
I wasn't sure which options actually allow to set the width and increase spacing, just like
https://receiptline.github.io/designer/
? Would that be done through character limitation only? Also, is there a way to set a specific font during render (e.g.,<span style="font-family:Papyrus; font-size:4em;">Thanks!</span>
)? I'm trying to make it look a bit more alike with the US & CA standard.The text was updated successfully, but these errors were encountered: