@Test
public void testCanDisplayType0FontsThatDontThrow() throws TaskIOException, IOException {

    PDDocument doc = getTestDoc("pdf/2-up-sample.pdf");
    PDResources res = doc.getPage(0).getResources();
    PDFormXObject form = (PDFormXObject) res.getXObject(COSName.getPDFName("Form2"));
    PDResources formRes = form.getResources();
    PDFont font = formRes.getFont(COSName.getPDFName("F0"));
    assertThat(font.getName(), is("Arial-BoldMT"));
    assertThat(FontUtils.canDisplay("Redacted out :)", font), is(false));
}