Skip to content

Commit 993343d

Browse files
committed
Add more ZPL printer name patterns for EPL emulation
1 parent d48d606 commit 993343d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Languages/PrinterCommandLanguage.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ export function guessLanguageFromModelHint(deviceInfo?: IDeviceInformation): Con
2424
const modelName = deviceInfo.productName ?? '';
2525
// ZPL printers follow standard formats and can usually be trusted.
2626
switch (true) {
27+
// A number of printers support auto-detect based on the first command sent
28+
// We prefer ZPL for a few reasons, so we try ZPL with them first.
29+
case /ZD420/gim.test(modelName): // (guess)
30+
case /GK420/gim.test(modelName): // ZTC GK420t
31+
case /GK888/gim.test(modelName): // (guess)
32+
case /GX4[23]0/gim.test(modelName): // (guess)
33+
case /GT800/gim.test(modelName): // (guess)
2734
case /LP 2824 Plus/gim.test(modelName): // LP 2844 Plus
2835
return Conf.PrinterCommandLanguage.zplEmulateEpl;
2936

0 commit comments

Comments
 (0)