I'm trying to figure out how to draw bolded text using PdfGraphic's DrawString method. It looks like there is a single overload that allows you to pass in a PdfPen, and the PdfPen has a "Width" property that would probably due the trick. However, all the other overloads use PdfBrush and I need to use one of those overloads. Is there a way to draw bolded text using DrawString with a PdfBrush?
Thank you for the response. I'm not sure how to create a bold font with PdfFont. To create a PdfFont, I am currently doing this:
var font = document.FontManager.CreateCIDFontFromTrueTypeFont( PdfFontManager.GetSystemTrueTypeFontFileName( fontName ) )
It doesn't seem like there is any opportunity to specify font style such as Bold when creating the font.
With .Net's System.Drawing.Font class, it's easy because FontStyle is included in an overload of the constructor. But PdfFont doesn't seem to provide this.