title: How to set basefont color?
body: <p>I want to change my basefont color.</p>
  
  <p>I used a rectangle to set the background color, but I can't figure out how to get my font to be white, as I'm using PdfContentByte object.</p>
  
  <p>I tried to use Chunk to set the font color but SetFontAndSize overrides it.</p>
  
  <pre><code>BaseFont bfTimes = BaseFont.CreateFont(BaseFont.TIMES_ROMAN, BaseFont.CP1252, false);
  
  iTextSharp.text.Font titreProgFont = FontFactory.GetFont("Times", 12, BaseColor.WHITE);
  
  string nomProgramme, codeProgramme;
  nomProgramme = "PROGRAMMEUR ANALYSTE";
  codeProgramme = "LEA.1A";
  
  Chunk titreProgChunk = new Chunk(nomProgramme + " (" + codeProgramme + ")", titreProgFont);
  
  PdfContentByte cb2 = writer.DirectContent;
  cb2.SaveState();
  cb2.SetColorFill(BaseColor.GRAY);
  cb2.Rectangle(200, 200, 200, 200);
  cb2.Fill();
  cb2.RestoreState();
  cb2.BeginText();
  cb2.SetFontAndSize(bfTimes, 12);
  cb2.ShowTextAligned(PdfContentByte.ALIGN_CENTER, titreProgChunk.ToString(), 200, 200, 0);
  cb2.EndText();
  </code></pre>