title: Using Variable Fonts in R
body: <p>I wish to use a Windows 10 font (I am using Windows 10 and the font is installed/usable in other applications like Word) in a <code>ggplot</code>.</p>
  <p>I am attempting to use the <code>extrafont</code> package.</p>
  <pre><code>library(extrafont)
  font_import()
  loadfonts(device = &quot;win&quot;)
  </code></pre>
  <p>Calling <code>View(fonttable())</code> shows that Window's fonts have been loaded.</p>
  <p>The font I am looking for is called &quot;Bahnschrift Light&quot;. The parent font family &quot;Bahnschrift&quot; has been imported, but not the specific font.</p>
  <p>I navigated to the Windows fonts folder.  The folder contains the font family &quot;Bahnschrift&quot; but not for the font &quot;Bahnschrift Light&quot;. If I double click on the &quot;Bahnschrift&quot; font, a list of (what I believe are) subfamilies, including &quot;Bahnschrift Light&quot;.</p>
  <p>[Deleted content]</p>
  <p><strong>EDIT:</strong>
  I have learned more about this font, now. &quot;Bahnschrift&quot; is a &quot;Variable Font&quot;. Variable fonts have one or more axes of variation (weight, width, slant, etc.) that are used to define entire font families in a single font file. <a href="https://creativemarket.com/blog/what-is-a-variable-font" rel="nofollow noreferrer">1</a>
  So I can reword my question.</p>
  <p><strong>How/can one use variable fonts in R (specifically in ggplot)?</strong></p>