title: Graphviz can't find any fonts
body: <p>I'm getting "Could not find/open font" errors when doing anything with graphviz. I've been narrowing it down to an as simple graph as possible, in the file <code>simplest.dot</code>:</p>
  
  <pre><code>digraph G {
    node1
  }
  </code></pre>
  
  <p>When running <code>$ dot simplest.dot -Tpng -O</code> the graph is rendered to <code>simplest.dot.png</code>, but I always get this error: <code>Error: Could not find/open font</code>, and the font used in the output isn't very pretty.</p>
  
  <p>According to the graphviz faq, when this error occurs, you can <a href="http://www.graphviz.org/doc/FAQ.html#Q37" rel="nofollow">tell graphviz where to look for fonts</a>. I've been looking around for fonts on the system I'm using, and there seem to be some TrueType fonts in <code>/usr/share/fonts</code>, among others, the Bitstream Vera fonts, which seem to live in <code>/usr/share/fonts/bitstream-vera</code>.</p>
  
  <p>So I've tried setting <code>fontpath</code> and <code>fontname</code> in the dot graph, to help graphviz figure things out:</p>
  
  <pre><code>digraph G {
    fontpath="/usr/share/fonts/bitstream-vera"
    fontname="Bitstream Vera Sans"
    node1
  }
  </code></pre>
  
  <p>But I'm still getting the exact same error. I've tried several variations of the path and font name, but I can't seem to get it right. What am I doing wrong?</p>