When you open in Acrobat what font name does it show? It may be a case of font propagation. Instead of creating a Chunk, create a Paragraph and add it alone to the document.
Best Regards, Paulo Soares > -----Original Message----- > From: Graham Leggett [SMTP:[EMAIL PROTECTED] > Sent: Thursday, May 29, 2003 13:25 > To: [EMAIL PROTECTED] > Subject: [iText-questions] Barcode fonts - still cannot get it to > work (font not found) > > Hi all, > > I am trying to use the following code to render a simple code 39 > barcode, with the code 39 bardoce ttf font embedded in the PDF: > > BaseFont bfCode39 = BaseFont.createFont("CODE39.TTF", BaseFont.WINANSI, > BaseFont.EMBEDDED); > Chunk barcode = new Chunk("*" + row.serial + "*", new > com.lowagie.text.Font(bfCode39, 36)); > > The barcode does not appear as a barcode, but rather as the digit > sequence in times new roman. > > The above code lives in a jar file, and the font CODE39.TTF exists in > the root of that jar file. > > No exceptions are thrown saying file not found, so in theory the font is > being found, but then why the times new roman? > > Any ideas what is wrong? > > Regards, > Graham > -- > ----------------------------------------- > [EMAIL PROTECTED] "There's a moon > over Bourbon Street > tonight..." > > > > ------------------------------------------------------- > This SF.net email is sponsored by: eBay > Get office equipment for less on eBay! > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions