I'm a little surprised that no-one hasn't come across this bug sooner, but I managed to verify its existence and provide a patch that seems to fix the problem. I guess its not been discovered because most PDF renderer users must favour using truetype fonts. A positive descender value was being used on type 1 fonts when calculating the line width for text-decoration(s). This was causing a negative line width, resulting in the decoration line not being drawn by the PDF renderer. This patch fixes this problem. I have successfully tested the patch against a reasonably complex FO example with both the postscript and pdf renderer to try and ensure it does not break anything. You can just as easily reproduce the problem with a simple "hello world!" fo example with a single block (using text-decoration, referencing a type 1 font-family). Ideally it would be nice to have a JUnit test case to verify this fix against but I'm not sure about legal licensing issues with acquiring some free (GPL) type 1 fonts. Adrian.
Created attachment 20639 [details] patch file * Improves error log output in PDFRender.drawBorderLine(). * Fixes descender calculation used from PFMFile.
Patch Applied. Excellent work Adrian!
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed