https://issues.apache.org/bugzilla/show_bug.cgi?id=44672
--- Comment #2 from Jeremias Maerki <[EMAIL PROTECTED]> 2008-03-25 13:01:14 PST --- Created an attachment (id=21714) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=21714) Some demo output (made from PCL output by GhostPCL) I can't see exactly what you described. In my tests some of the right-most characters are slightly shifted to the right and into the border I made around the table to get some boundaries. I've enhanced your example a bit and attached the resulting TIFF here. This first part uses "Helvetica" which is mapped to a PCL standard font (text-rendering set to "auto") and the second part uses a TrueType font ("DejaVu Serif") which is painted using bitmaps. You can see that in the second part there are no such effects. The problem is the following: We don't have the exact font metrics of those native PCL fonts. They may even be different from printer to printer which would explain your different results. So the result is just an approximation for the case where a native PCL font is used. The good thing about the native font is a smaller PCL file but obviously, it comes with a downside. Fortunately, there is a setting where you can force FOP to output all fonts using bitmaps which should make your problem go away. See the "text-rendering" setting in http://xmlgraphics.apache.org/fop/0.95/output.html#pcl-configuration (you need to switch from "auto" to "bitmap") The alternative would be to implement TrueType font embedding support for the PCL renderer but I've looked into this and it looks very complicated. As a side-note: Even most Windows PCL printer drivers generate all text as bitmaps rather than PCL text. Anyway, you've asked for pointers into the code: org.apache.fop.render.pcl.PCLRenderer, method renderText(TextArea) The local variable "pclFont" determines whether the text is painted as PCL text or as bitmaps. HTH -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
