We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7eecca2 commit ecef4e7Copy full SHA for ecef4e7
.changeset/funny-onions-serve.md
@@ -0,0 +1,5 @@
1
+---
2
+"@node-escpos/core": patch
3
4
+
5
+Fixes italic mode
packages/core/src/commands.ts
@@ -147,8 +147,8 @@ export const TEXT_FORMAT = {
147
TXT_UNDERL2_ON: "\x1B\x2D\x02", // Underline font 2-dot ON
148
TXT_BOLD_OFF: "\x1B\x45\x00", // Bold font OFF
149
TXT_BOLD_ON: "\x1B\x45\x01", // Bold font ON
150
- TXT_ITALIC_OFF: "\x1B\x35", // Italic font ON
151
- TXT_ITALIC_ON: "\x1B\x34", // Italic font ON
+ TXT_ITALIC_OFF: "\x1B\x34\x00", // Italic font OFF
+ TXT_ITALIC_ON: "\x1B\x34\x01", // Italic font ON
152
153
TXT_FONT_A: "\x1B\x4D\x00", // Font type A
154
TXT_FONT_B: "\x1B\x4D\x01", // Font type B
0 commit comments