@Test
public void testWidths() throws Exception{

    final PdfReader pdfReader = TestResourceUtils.getResourceAsPdfReader(this, "fontwithwidthissue.pdf");
    try {
        PdfDictionary fontsDic = pdfReader.getPageN(1).getAsDict(PdfName.RESOURCES).getAsDict(PdfName.FONT);
        PRIndirectReference fontDicIndirect = (PRIndirectReference)fontsDic.get(new PdfName("F1"));
        
        CMapAwareDocumentFont f = new CMapAwareDocumentFont(fontDicIndirect);
        Assert.assertTrue("Width should not be 0", f.getWidth('h') != 0);
    } finally {
        pdfReader.close();
    }
}