Sfoglia il codice sorgente

优化导出PDF时采用的默认字体问题

master
jacky6024 7 anni fa
parent
commit
945d2e6f9d
  1. 4
      ureport2-core/src/main/java/com/bstek/ureport/export/pdf/CellPhrase.java

4
ureport2-core/src/main/java/com/bstek/ureport/export/pdf/CellPhrase.java

@ -101,7 +101,9 @@ public class CellPhrase extends Phrase {
if(bold==null)bold=false;
if(italic==null)italic=false;
if(underline==null)underline=false;
if(StringUtils.isBlank(fontName)){
fontName="宋体";
}
Font font=FontBuilder.getFont(fontName, fontSize,bold,italic,underline);
String fontColor=style.getForecolor();
if(customStyle!=null && StringUtils.isNotBlank(customStyle.getForecolor())){

Caricamento…
Annulla
Salva