iTextSharp Textfield setting the font to Bold

前端 未结 2 1447
有刺的猬
有刺的猬 2021-01-21 02:08

For a textfield object, I would like to change the style to bold. I have already created the arial font since it is not a default font for the BaseFont object. Apparently the Te

2条回答
  •  醉话见心
    2021-01-21 02:28

    Have you tried specifying arialbd.ttf as the font name? I think that will give better results anyway, as the bold font will have been tuned.

    (I'm not sure why you can't just specify a Font for a TextField, admittedly...)

提交回复
热议问题