title: node-canvas registerFont can't find font file once deployed (works locally)
body: <p>I have a Node.js server that uses node-canvas to render text on an image on the server-side. Here is the repo: <a href="https://github.com/shawninder/meme-generator" rel="nofollow noreferrer">https://github.com/shawninder/meme-generator</a> (just <code>git clone</code>, <code>npm i</code> and <code>npm run dev</code> to run locally).</p>
  <p>As you'll notice in the code, I am loading the <em>Anton</em> font, which I got from <a href="https://fonts.google.com/specimen/Anton?query=Anton&amp;selection.family=Anton&amp;sidebar.open" rel="nofollow noreferrer">here</a> with the documented <code>registerFont</code> function provided by node-canvas</p>
  <pre class="lang-js prettyprint-override"><code>registerFont('./fonts/Anton-Regular.ttf', { family: 'Anton' })
  </code></pre>
  <p>Everything works like a charm locally, but when I deploy to <a href="https://vercel.com/home" rel="nofollow noreferrer">Vercel</a> (formerly known as zeit), that line throws an <code>ENOENT</code> error:</p>
  <blockquote>
  <p>no such file or directory, lstat '/var/task/fonts'</p>
  </blockquote>
  <ul>
  <li>Is there a path I can use here that will successfully load the font from within a Vercel function?</li>
  <li>Can I find a single path that will work both locally and once deployed?</li>
  </ul>