Recently I’ve updated the Prawn gem in one of my projects. It’s an alpha
that’s not officially supporting JRuby, but since it’s 100% pure Ruby I
wondering if you could point me in the right direction.
The problem arises when loading a TTF font with Prawn 0.4.1, as such:
gem ‘prawn’, ‘0.4.1’
Prawn::Document.generate “prawn.pdf” do
font “HelveticaNeue.ttf” # Trying to load a TTF font generates error
text “Hello from JRuby”
With earlier versions this didn’t cause problems, but now I get this
(to me at least) error:
eltInternal': java.lang.ArrayIndexOutOfBoundsException: 259 from org.jruby.util.Pack:1141:inencode’
pack' from org.jruby.RubyArray:3277:inpack’
Full trace at http://pastie.org/371377
I haven’t looked at the Prawn code yet since the error makes me thing
JRuby-related problem. Am I right or could this just as well be an issue
Prawn? I’d like to know where to look.
View this message in context:
Sent from the JRuby - User mailing list archive at Nabble.com.
To unsubscribe from this list, please visit: