字体文件

This commit is contained in:
2025-09-12 11:57:16 +08:00
parent 9402c3c9f3
commit a1d1aaff49
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -341,7 +341,7 @@ public class WgzQuestionSaveServiceImpl extends ServiceImpl<WgzQuestionSaveMappe
Document document = new Document(pdfDoc, PageSize.A4); Document document = new Document(pdfDoc, PageSize.A4);
// 加载字体(确保 simhei.ttf 可用) // 加载字体(确保 simhei.ttf 可用)
String fontPath = "fonts/simhei.ttf"; String fontPath = "file/resource/fonts/simhei.ttf";
PdfFont simhei = PdfFontFactory.createFont(fontPath, PdfEncodings.IDENTITY_H); PdfFont simhei = PdfFontFactory.createFont(fontPath, PdfEncodings.IDENTITY_H);
PdfFont simheiBold = PdfFontFactory.createFont(fontPath, PdfEncodings.IDENTITY_H); PdfFont simheiBold = PdfFontFactory.createFont(fontPath, PdfEncodings.IDENTITY_H);