in CF10, I'm trying to print barcodes with ttf barcode fonts inside a PDF document generated with the cfdocument tag. The barcode is generated, but with wrong spacing.
The code printing the barcode is quite simple:
This is what it should look like:
cfdocument renders the barcode like this:
The spacing between the individual barcode characters is wrong. The "letter-spacing" CSS option doesn't make andy difference. Any idea for a solution?
Just posted this a moment ago on another thread RE css and cfdocument.
letter-spacing will not be support inside cfdocument.
You will be reliant on the font style itself. Note as well that some barcodes only work at certain font sizes. If you adjust the font size down does this change the spacing?
I'm aware that the letter-spacing CSS attribute is not on the list of supported attributes for cfdocument, but in my experience this list contains errors, so I thought I'd just try it out. If it' not supported, it is just ignored.
Leaving out the font-size and letter-spacing attributes doesn't make any difference for the spacing issue, there are still gaps between the individual barcode "characters" which render the barcode unreadable. I tried different TTF barcode fonts that work just fine in Windows. Our CF server runs under Linux.