字体文件
This commit is contained in:
Binary file not shown.
@ -341,7 +341,7 @@ public class WgzQuestionSaveServiceImpl extends ServiceImpl<WgzQuestionSaveMappe
|
||||
Document document = new Document(pdfDoc, PageSize.A4);
|
||||
|
||||
// 加载字体(确保 simhei.ttf 可用)
|
||||
String fontPath = "fonts/simhei.ttf";
|
||||
String fontPath = "file/resource/fonts/simhei.ttf";
|
||||
PdfFont simhei = PdfFontFactory.createFont(fontPath, PdfEncodings.IDENTITY_H);
|
||||
PdfFont simheiBold = PdfFontFactory.createFont(fontPath, PdfEncodings.IDENTITY_H);
|
||||
|
||||
|
Reference in New Issue
Block a user