node-escpos / driver

🖨️ ESC/POS Printer driver for Node.js.
Other
318 stars 32 forks source link

Enhance drawLine function with raw buffer possibility #36

Closed dschweinbenz closed 1 year ago

dschweinbenz commented 1 year ago

In order to be able to use different character code pages it is necessary to print the raw hex value of a character from the codepage. With this enhancement it is possible to draw a line using the line character ─ from PC850:

printer.setCharacterCodeTable(2);
printer.drawLine(Buffer.from('C4', 'hex'));
printer.setCharacterCodeTable(0);
changeset-bot[bot] commented 1 year ago

🦋 Changeset detected

Latest commit: afd41ef362371507bc4a5142ed0f9e6c38789312

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ----------------- | ----- | | @node-escpos/core | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

dohooo commented 1 year ago

Please add a changeset in this PR. Refer to CONTRIBUTION.

dschweinbenz commented 1 year ago

Please add a changeset in this PR. Refer to CONTRIBUTION.

ah sorry, done