Processing 3.3.1 text font arrayindexoob error

This works in Processing 3.3, however I get an ArrayIndexOutOfBoundsException in Processing 3.3.1. When I omitted the 'm' and '_'s in the text, it runs fine though. I just used the "Create Font" tool under Tools to get the vlw file, and it works fine if no font is declared.

size(800,800);
PFont comicsans = loadFont("ComicSansMS-48.vlw");
fill(0);
textFont(comicsans, 48);
textAlign(CENTER,CENTER);
text("m_a_n", 400, 400);

Answers

  • This works in Processing 3.3, however I get an ArrayIndexOutOfBoundsException in Processing 3.3.1

    Odd. Is it possible that your font doesn't have an _ character?

    I'm not sure if it matters, but did you use the Create Font tool in both 3.3 and 3.3.1, or did you just Create Font it in 3.3 and then try loading in both?

  • Answer ✓

    @jeremydouglass It was a bug with 3.3.1, it's fixed in 3.3.2, thanks

Sign In or Register to comment.