title: How to use Open Type Fonts in Java?
body: <p>Is there a way to read Open Type fonts in Java the same way as I do with TrueType fonts?</p>
  <p>This works perfectly for TTF but I did not figure out yet how to do the same with Open Type fonts.</p>
  <pre><code>Font f = Font.createFont( Font.TRUETYPE_FONT,
  new FileInputStream(&quot;f.ttf&quot;) );
  </code></pre>
  <p>Please note I cannot rely on installed fonts. I provide the font with my program but don't want to install it system-wide.</p>