title: php mPDF, impossible to set font-family and font-size
body: <p>Ok after so much time spent reading their documentation, and my tests I decided to consult the SO community for a help.</p>
  
  <p>I use mPDF to generate pdf from HTML. The library works fine, pdf is produced etc. </p>
  
  <p>But I wasn't able to set the font-family and font-size as I want it.</p>
  
  <p>Code I tried: </p>
  
  <pre><code>$mpdf = new mPDF('c', 'A4');
  $mpdf-&gt;CSSselectMedia='mpdf';
  $mpdf-&gt;setAutoTopMargin = 'stretch';
  $mpdf-&gt;setAutoBottomMargin = 'stretch';
  $mpdf-&gt;setBasePath($url);
  $mpdf-&gt;SetHeader($url);
  $mpdf-&gt;WriteHTML($html);
  $mpdf-&gt;SetFooter($url);
  $mpdf-&gt;Output($filename.'.pdf', 'I');
  </code></pre>
  
  <p>In my stylesheet with mpdf media, I have bunch of styles that are dealing with all of the html code. And I also have some rules for the font-family and the font-size ie:</p>
  
  <pre><code>body{
          border: none;
          font-size: 10pt;
          colosr:#000;
          font-family: Times, Georgia, "Times New Roman", serif !important;
      }
  </code></pre>
  
  <p>But the font settings are not apllied at all.</p>
  
  <p>I also tried the following params on instantiation:</p>
  
  <pre><code>$mpdf = new mPDF('UTF-8', 'A4',9, 'dejavuserif');
  </code></pre>
  
  <p>But still nothing. I still have sans-serif in the pdf, and also in very big size.</p>
  
  <p>Can someone shed some light on this?</p>