Avoid test failing on Windows with JDK 8 because of an ArrayIndexOutOfBoundsException when handling fonts