From fef960f7e868824cfe7c009391992cf428603c1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=B0=A7?= Date: Sun, 27 Apr 2025 16:29:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E4=BD=93=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_base/commons/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sf_base/commons/common.py b/sf_base/commons/common.py index 30c06b6d..32a05290 100644 --- a/sf_base/commons/common.py +++ b/sf_base/commons/common.py @@ -134,7 +134,7 @@ class PrintingUtils(models.AbstractModel): # 注册中文字体 font_paths = [ - "/usr/share/fonts/windows/simsun.ttc", # Windows系统宋体 + "/usr/share/fonts/chinese/simsun.ttc", # Windows系统宋体 "c:/windows/fonts/simsun.ttc", # Windows系统宋体另一个位置 "/usr/share/fonts/truetype/droid/DroidSansFallbackFull.ttf", # Linux Droid字体 "/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc", # 文泉驿正黑 @@ -217,4 +217,5 @@ class PrintingUtils(models.AbstractModel): if os.path.exists(qr_temp_path): os.remove(qr_temp_path) if os.path.exists(output_temp_path): + os.remove(output_temp_path) os.remove(output_temp_path) \ No newline at end of file