Browse Source

Merge pull request #66 in CORE/base-third from ~KERRY/base-third:feature/10.0 to feature/10.0

* commit '756d79c6620508852830eb5abd553b8d3152a5b1':
  REPORT-8178  chunk的宽度计算偏差问题
research/11.0
neil 7 years ago
parent
commit
62a147a9c0
  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