title: How to determine iTextSharp Basefont default style
body: <p>I am creating a PDF using iTextSharp. </p>
  
  <p>Part of the process adds straightforward text to the PDF and another part creates an outline of the same text.</p>
  
  <p>For the straighforward text aspect I am using the ShowTextAligned method in iTextSharp; which requires a Basefont and has no way of setting the style. </p>
  
  <p>For the outline I am creating a GDI GraphicsPath to get points, which are then translated into PDF curves/lines etc. The AddString method requires a Drawing.FontStyle</p>
  
  <p>Now my issue is that I need to set the style of AddString to the same one being used by the BaseFont. I.E if the Basefont is rendering Regular, i need to set the AddString fontstyle to regular</p>
  
  <p>How do I determine what style is being used by the BaseFont in ShowTextAligned?</p>
  
  <p>Further info:</p>
  
  <p>I have also tried using ColumnText; which allows you to set an iTextSharp Font, along with it's style. Though using this method results in a font that is rendered with the approximate style; I.E a font usually in regular and set to bold gives a slightly malformed bold font.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>When I say i need to pass in the BaseFont to ShowTextAligned, What I mean to say is that in order to use this method you have to set the font and size first using SetFontAndSize of the PdfContentByte - it is this method that requires the BaseFont.</p>
  
  <p>I know I must be missing something obvious.. I just can't see the wood for the trees :)</p>