|
|
|
@ -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(){ |
|
|
|
|