Browse Source

REPORT-8178 chunk的宽度计算偏差问题

research/11.0
kerry 6 years ago
parent
commit
dcd394c171
  1. 9
      fine-itext/src/com/fr/third/v2/lowagie/text/pdf/PdfFont.java

9
fine-itext/src/com/fr/third/v2/lowagie/text/pdf/PdfFont.java

@ -178,7 +178,14 @@ public class PdfFont implements Comparable {
}
public java.awt.Font getAwtFont() {
return new java.awt.Font(oriFont.getFontName(), oriFont.getStyle(), (int)oriFont.getSize());
int style = Font.NORMAL;
if (oriFont.isBold()) {
style |= Font.BOLD;
}
if(oriFont.isItalic()){
style |= Font.ITALIC;
}
return new java.awt.Font(oriFont.getFontName(), style, (int)oriFont.getSize());
}
public Font getOriFont(){

Loading…
Cancel
Save