Skip to content

Commit ecef4e7

Browse files
committed
fix: italic mode
1 parent 7eecca2 commit ecef4e7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/funny-onions-serve.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@node-escpos/core": patch
3+
---
4+
5+
Fixes italic mode

packages/core/src/commands.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ export const TEXT_FORMAT = {
147147
TXT_UNDERL2_ON: "\x1B\x2D\x02", // Underline font 2-dot ON
148148
TXT_BOLD_OFF: "\x1B\x45\x00", // Bold font OFF
149149
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
150+
TXT_ITALIC_OFF: "\x1B\x34\x00", // Italic font OFF
151+
TXT_ITALIC_ON: "\x1B\x34\x01", // Italic font ON
152152

153153
TXT_FONT_A: "\x1B\x4D\x00", // Font type A
154154
TXT_FONT_B: "\x1B\x4D\x01", // Font type B

0 commit comments

Comments
 (0)