fix: 🧩 修复打印字体穿透

This commit is contained in:
2025-08-13 10:15:56 +08:00
parent 618666421e
commit 00be3968f9
14 changed files with 54 additions and 38 deletions

View File

@@ -26,7 +26,7 @@ export const boxMarkListPrint = (printData, printNumber) => {
LODOP.SET_PRINT_PAGESIZE(0, 900, 400, "");
LODOP.SET_PRINT_STYLE("FontSize", 9.3);
LODOP.SET_PRINT_STYLE("Bold", 1);
LODOP.SET_PRINT_STYLE("FontName", "思源黑体");
LODOP.SET_PRINT_STYLE("FontName", "黑体");
let logs = [];
let printDataClone = [];
@@ -124,13 +124,13 @@ function AddPrintContent(obj) {
LODOP.ADD_PRINT_TEXT(8, 232, "28mm", 30, `${remark}`);
LODOP.SET_PRINT_STYLEA(0, "TextOverflow", 2);
LODOP.SET_PRINT_STYLEA(0, "FontSize", 12);
LODOP.SET_PRINT_STYLEA(0, "FontName", "思源黑体");
LODOP.SET_PRINT_STYLEA(0, "FontName", "黑体");
LODOP.SET_PRINT_STYLEA(0, "LineSpacing", -6);
} else {
LODOP.ADD_PRINT_TEXT(8, 232, "28mm", 30, `${remark}`);
LODOP.SET_PRINT_STYLEA(0, "TextOverflow", 2);
LODOP.SET_PRINT_STYLEA(0, "FontSize", 12);
LODOP.SET_PRINT_STYLEA(0, "FontName", "思源黑体");
LODOP.SET_PRINT_STYLEA(0, "FontName", "黑体");
LODOP.SET_PRINT_STYLEA(0, "LineSpacing", -6);
}
}