I'm getting a
java.awt.FontFormatException: Unrecognised Font Format
error, and I believe this has been happening only since performing the 10.5 java 4 update, though I can't verify that to be exact. My java version after the update is 1.5.0_19
I'm using jruby in rails to generate a font with the following code:
font = java.awt.Font.createFont(java.awt.Font::TRUETYPE_FONT, java.io.FileInputStream.new("#{RAILS_ROOT}/lib/Arial.ttf"))
The Arial.ttf is taken from my OSX fonts folder and it is obviously a TTF, so what is wrong?
Has anyone experienced any odd font issues after upgrading java? I don't know if I have to update jruby after updating java, but I can't imagine that's the case.
Any thoughts are appreciated.