2

我正在使用 graphics2d 的 drawString 方法在 iText 中显示字符串。但是我不能在 graphics2d 中使用嵌入字体,当我尝试调用 graphics2d 的 setFont 方法时,它需要 java.awt.font 而不是 itextpdf.text.Font。如何使用嵌入字体到图形 2d ?

4

0 回答 0