title: Setting custom font
body: <p>I'm trying to set a custom font (bilboregular.ttf) to 2 jLabels in my program
  The fonts aren't being loaded successfully though.</p>
  
  <p>Here is the main method calls:</p>
  
  <pre><code>//this should work if the build is in a jar file, otherwise it'll try to load it directly from the file path (i'm running in netbeans)
  if (!setFonts("resources/bilboregular.ttf")) {
          System.out.println("=================FAILED FIRST OPTION"); // &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; This is being displayed
  if(!setFonts(System.getProperty("user.dir")+"/src/resources/bilboregular.ttf")){
              System.out.println("=================FAILED SECOND OPTION"); // &lt;&lt;&lt; This is not being displayed
          }
      }
  </code></pre>
  
  <p>Here is the other method:</p>
  
  <pre><code>public boolean setFonts(String s) {
      try {
  jLabel3.setFont(java.awt.Font.createFont(java.awt.Font.TRUETYPE_FONT, new java.io.File(s)));
  jLabel4.setFont(java.awt.Font.createFont(java.awt.Font.TRUETYPE_FONT, new java.io.File(s)));
          return true;
      } catch (Exception ex) {
          return false;
      }
  }
  </code></pre>