Hello everyone, this time I've a problem with BaseFont.setKerning(). Here's the code-snip:
PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("test.pdf")); document.open(); PdfContentByte cb = writer.getDirectContent(); PdfPTable table = new PdfPTable(1); Font font = FontFactory.getFont(FontFactory.TIMES, BaseFont.WINANSI, true, 20, Font.NORMAL, Color.GREEN); BaseFont bf = font.getBaseFont(); bf.setKerning('t', 'e', 30); Phrase phrase = new Phrase("test", font); PdfPCell cell = new PdfPCell(phrase); cell.setFixedHeight(100f); table.addCell(cell); table.setTotalWidth(300); table.writeSelectedRows(0, 1, 100, 700, cb); document.close(); In the generated PDF there's no kerning between the 't' and the 'e'. Any ideas? Thanks for your help! Best regards, Martin ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions