title: Set Font Color, Font Face and Font Size in PHPExcel
body: <p>I'm working in PHPExcel. I'm beginner.When I'm using following code and its working fine.</p>
  
  <pre><code>$phpExcel = new PHPExcel();
  
  $phpExcel-&gt;getActiveSheet()-&gt;getStyle("A1")-&gt;getFont()-&gt;setBold(true)
                                  -&gt;setName('Verdana')
                                  -&gt;setSize(10)
                                  -&gt;getColor()-&gt;setRGB('6F6F6F');
  </code></pre>
  
  <p>But when I'm using following code and not getting expected result as above.</p>
  
  <pre><code>$phpFont = new PHPExcel_Style_Font();
  $phpFont-&gt;setBold(true);
  $phpFont-&gt;setName('Verdana');
  $phpFont-&gt;setSize(15);
  
  $phpColor = new PHPExcel_Style_Color();
  $phpColor-&gt;setRGB('FF0000');  
  
  $phpExcel-&gt;getActiveSheet()-&gt;getStyle('A1')-&gt;setFont( $phpFont );
  $phpExcel-&gt;getActiveSheet()-&gt;getStyle('A1')-&gt;getFont()-&gt;setColor( $phpColor );
  </code></pre>
  
  <p>Please help me what am I doing wrong in above code.</p>
  
  <p>Thank you in advance!</p>