title: Google Webfonts in PDF generated by DOMPDF
body: <p>I am using two webfonts in a page that I convert to a PDF using dompdf. I have this in the header:</p>
  
  <pre><code>&lt;link href='http://fonts.googleapis.com/css?family=Signika:600|Roboto+Condensed' rel='stylesheet' type='text/css'&gt;
  </code></pre>
  
  <p>I then use them in CSS rules like </p>
  
  <pre><code>body {
    font-family: "Roboto Condensed", sans-serif;
    [ ... ]
  }
  h1 {
    font-family:'Signika', Arial, Helvetica, sans-serif;
    [ ... ]
  }
  </code></pre>
  
  <p>Now, when I generate the PDF, the h1 is displayed with the "Signika" font, but "Roboto Condensed" is replaced by Helvetica or some other standard sans-serif font.</p>
  
  <p>If I open the "preview" file (i.e. the php page which I then include in the PDF generation script), "Roboto Condensed" is displayed as expected, but it doesn't make it into the PDF. But as I wrote, "Signika" is there in the PDF, and that's somehow odd to me. BTW, I also tried to include the font-face rule directly in  CSS rules for <code>p</code>, <code>div</code>, <code>li</code> etc. but that wouldn't change anything.</p>
  
  <p>Any suggestions how I could fix that?</p>
  
  <hr>
  
  <p>EDIT/ADDITION:</p>
  
  <p>Thinking about it, a difference between the two fonts is that Roboto Condensed has a space in its name. I wonder if that could cause the problem (i.e. dompdf not being able to handle such a font name)? But I can't change that as long as I am fetching the fonts from the Google server.</p>