title: FontFactory (lowagie), Java, getting java.io.EOFException when trying to use Greek-Regular
body: <p>I am using com.lowagie.text.FontFactory to register Greek Font to use in a PDF file. But, while registering itself I am getting java.io.EOFException.I would appreciate if anyone may have any insight into this. Thanks</p>
  
  <pre><code>FontFactory.register("/classes/fonts/LiberationSans-Regular.ttf","Greek-Regular");
  </code></pre>
  
  <p>Error Stack:</p>
  
  <pre><code>ExceptionConverter: java.io.EOFException
      at com.lowagie.text.pdf.RandomAccessFileOrArray.readFully(Unknown Source)
      at com.lowagie.text.pdf.RandomAccessFileOrArray.readFully(Unknown Source)
      at com.lowagie.text.pdf.TrueTypeFont.readStandardString(Unknown Source)
      at com.lowagie.text.pdf.TrueTypeFont.getAllNames(Unknown Source)
      at com.lowagie.text.pdf.TrueTypeFont.process(Unknown Source)
      at com.lowagie.text.pdf.TrueTypeFont.&lt;init&gt;(Unknown Source)
      at com.lowagie.text.pdf.BaseFont.getAllFontNames(Unknown Source)
      at com.lowagie.text.FontFactoryImp.register(Unknown Source)
      at com.lowagie.text.FontFactory.register(Unknown Source)
      at com.gxs.activefoundation.delegate.DefaultPdfReportDelegateImpl.&lt;clinit&gt;(DefaultPdfReportDelegateImpl.java:212)
  </code></pre>