Bold on reciepts with addTextLine. #168
-
I want to bold in this situation like for example here i want to bold CheesBurger only can i achieve it? await Printer.addTextLine(printerInstance, { |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
@sarmad-321 could you try please to test the following commands: ...
printerInstance.addTextStyle({
em: PrinterConstants.TRUE,
});
printerInstance.addText('Hello');
printerInstance.addTextStyle({
em: PrinterConstants.FALSE,
});
printerInstance.addText(' World!') If it prints "Hello World!" in a one-line then the answer to your question will be yes. In this case I'll update addTextLine function |
Beta Was this translation helpful? Give feedback.
-
@sarmad-321 you can use esc pos encoder with this sdk. https://www.npmjs.com/package/esc-pos-encoder |
Beta Was this translation helpful? Give feedback.
-
@sarmad-321 anyway I think you can not put less then "1" |
Beta Was this translation helpful? Give feedback.
-
Just released a new version with an alternative way of printing. |
Beta Was this translation helpful? Give feedback.
@sarmad-321
Just released a new version with an alternative way of printing.
Please check here