소스 검색

feature 修改水印字体

xiahan 1 개월 전
부모
커밋
da1510b16a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      qhse-common/src/main/java/com/rongwei/bscommon/sys/service/impl/FileFormatConversionServiceImpl.java

+ 1 - 1
qhse-common/src/main/java/com/rongwei/bscommon/sys/service/impl/FileFormatConversionServiceImpl.java

@@ -300,7 +300,7 @@ public class FileFormatConversionServiceImpl implements FileFormatConversionServ
             TextState textState = new TextState();
             textState.setFontSize(fontSize);
             textState.setForegroundColor(com.aspose.pdf.Color.getLightGray());
-            textState.setFont(FontRepository.findFont("Arial"));
+            textState.setFont(FontRepository.findFont("Microsoft YaHei"));
 
             // 平铺水印
             for (double x = -100; x < width; x += spacing) {