title: How I can load a font file with PIL.ImageFont.truetype without specifying the absolute path?
body: <p>When I write the code in Windows, this code can load the font file just fine:</p>
  
  <pre><code>ImageFont.truetype(filename='msyhbd.ttf', size=30);
  </code></pre>
  
  <p>I guess the font location is registered in Windows registry.
  But when I move the code to Ubuntu, and copy the font file over to /usr/share/fonts/, the code cannot locate the font:</p>
  
  <pre><code> self.font = core.getfont(font, size, index, encoding)
   IOError: cannot open resource
  </code></pre>
  
  <p>How can I get PIL to find the ttf file without specifying the absolute path?</p>