title: How to change the font of a column header without CSS
body: <p>I want to be able to change the font of a column header for JavaFX's TableView without using CSS. I've done a lot of searching online, and all of the solutions seem to only use CSS. The font I want to change it is a custom one, and loading custom fonts in CSS for JavaFX brings up an error that I can't seem to fix after searching tens of links.</p>
  <p>The CSS approach I tried is</p>
  <pre><code>@font-face {
      font-family: '8bitoperator';
      src: url('assets/8bitoperator.ttf');
  }
  
  .table-view .column-header.foo .label {
      -fx-text-fill: white;
      -fx-font-size: 0.13%; /* arbitrary value */
      -fx-font-family: '8bitoperator';
  }
  </code></pre>
  <p>Which runs into a <code>loadStylesheetUnPrivileged</code> error. All of my other stylings in my program has been through Javafx instead of CSS, so I would like to maintain that.</p>
  <p>Any help is appreciated.</p>