if (FontWeight.NORMAL != ff.weight()) {
assertThat(names[i++]).isEqualToIgnoringCase(ff.weight().name());
}
if (FontPosture.REGULAR != ff.posture()) {
assertThat(names[i++]).isEqualToIgnoringCase(ff.posture().name());
}
assertEquals(font.getSize(), ff.size(), 0.0);
}