title: Using a custom icon font with asciidoctor-pdf
body: <p>I have managed to use a custom icon font replacing FontAwesome in AsciiDoc by doing the following.</p>
  <p>I have placed my font files in my AsciiDoc root directory:</p>
  <ul>
  <li>icons.css</li>
  <li>fonts/icons.eot</li>
  <li>fonts/icons.svg</li>
  <li>fonts/icons.ttf</li>
  <li>fonts/icons.woff</li>
  </ul>
  <p>I have set the following properties in the AsciiDoc document:</p>
  <pre><code>:icons: font
  :iconfont-remote!:
  :iconfont-name: icons
  </code></pre>
  <p>The icon is rendered correctly in the HTML output and in the VS code plugin preview. When creating a pdf from the asciidoc, though, the icon doesn't appear. I use this command to generate the pdf:</p>
  <pre><code>bundle exec asciidoctor-pdf book.adoc -o out/book.pdf
  </code></pre>
  <p>And I receive this error (the icon is not renderered):</p>
  <pre><code>asciidoctor: WARNING: my-icon is not a valid icon name in the fa icon set
  </code></pre>
  <p>Does asciidoctor-pdf need to be pointed to the custom icon font in some way? I have tried looking for answers in the docs but couldn't find any (as a matter of fact, also making this work with HTML took some experimentation).</p>