ralfstuckert / pdfbox-layout

MIT License
155 stars 74 forks source link

Is there any way to add new Font into rst.pdfbox.layout.text.BaseFont #86

Open zhangwx2020 opened 3 years ago

zhangwx2020 commented 3 years ago

Hi Sir, Is there any way to add new Font into rst.pdfbox.layout.text.BaseFont? We want to add some base fonts for Chinese, like simsun.ttf etc. Thanks, Bill

whisper0429 commented 3 years ago

me too... waiting

whisper0429 commented 3 years ago

如果你是要用markup,倒有个传PDFont的重载方法addMarkup,但是中文字体是不是没有bold italic 和bold and italic,好麻烦。

zhangwx2020 commented 3 years ago

如果你是要用markup,倒有个传PDFont的重载方法addMarkup,但是中文字体是不是没有bold italic 和bold and italic,好麻烦。

Thanks. Without BaseFont changes, I abandoned Markup text. I am using pure text with PDFont for now.