Crash inside renderGlyph


#1

Hi Jules,

I’m getting a crash in renderGlyph at line 415 in the JuceAppActivity.java :

I/dalvikvm(20116): java.lang.IllegalArgumentException: width and height must be > 0
I/dalvikvm(20116): at android.graphics.Bitmap.createBitmap(Bitmap.java:638)
I/dalvikvm(20116): at android.graphics.Bitmap.createBitmap(Bitmap.java:620)

I’m not sure exactly why I end up with a 0-height glyph as I’m only displaying ascii characters with simple font variations (bold, italic). Anyway, adding 1 to the height parameter provided to createBitmap fixes the crash and everything seem to display just fine.


#2

Cheers! I’ll add a check for that…