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

Reply via email to