I am using a custom font file(.ttf) and need to make the font look italics in the cell.
PDType0Font chewyFont = PDType0Font.load(document,new File("Chewy-Regular.ttf"));
BaseTable table = new BaseTable(yPosition, yStartNewPage, bottomMargin, tableWidth, margin, document, page, true, drawContent); Row<PDPage> headerRow = table.createRow(20); Cell<PDPage> cell = headerRow.createCell(100, "Hello !!"); cell.setFont(chewyFont); table.draw();