title: Custom fonts not working in Generated PDF using WKHTMLTOPDF Library
body: <p>I am using Laravel 5.1 SnappyPDF wrapper, which is using <code>WKHTMLTOPDF</code> library. I am trying to include some custom google fonts for my PDF file, but those fonts are not working in generated PDF file.</p>
  
  <p>I tried, converting fonts into <code>Base64</code> and also tried to include fonts by absolute URL and relative URL, also tried many answers available at stack overflow but none of them worked for me. How to fix this issue.</p>
  
  <pre><code>//Calling fonts
  @font-face {
      font-family: Roboto Condensed;
      src: url("/fonts/RobotoCondensed-Regular/RobotoCondensed-Regular.ttf");
  }
  @font-face {
      font-family: 'Open Sans';src: url("/fonts/OpenSans/OpenSans-Regular.ttf");
  }
  
  @font-face {
      font-family: 'Open Sans Semi Bold Italic';
      src: url("/fonts/OpenSans/OpenSans-SemiboldItalic.ttf");
  }
  
   //implenting fonts
  .report-page2-col-wrapper .col-heading{
      font-family:"Open Sans Semi Bold Italic";
      font-size:12pt;
      line-height:17pt;
  }
  </code></pre>
  
  <p><strong>see difference in screen shots</strong></p>
  
  <p><strong>1) This is web browser HTML version, looks find and fonts implementing properly</strong></p>
  
  <hr>
  
  <p><a href="https://i.stack.imgur.com/CR8aB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/CR8aB.png" alt="enter image description here"></a></p>
  
  <p><strong>2) This is Generated PDF version, fonts not applying properly</strong></p>
  
  <hr>
  
  <p><a href="https://i.stack.imgur.com/ZMASq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZMASq.png" alt="enter image description here"></a></p>