1) take the attached .fo file 2) run it through apache fop to get the attached .pdf file 3) open it in evince, kpdf and xpdf to get the attached .png file 4) note that xpdf is the expected result and the one that agrees with acrobat reader
Created attachment 18764 [details] fo file
Created attachment 18765 [details] pdf file
Created attachment 18766 [details] png file
I've no idea of which poppler version you are using, but anyways, this is not a bug. The PDF has Courier NOT embedded in the file, so when rendering we have to ask the system for a font named Courier and draw what it gives us. We are using Fontconfig for that and using poppler 0.9.0 i get the "correct" answer (n022003l.pfb), so if it does not for you, either update your poppler or fix your fontconfig to give the correct font when asking for Courier.
Some more information I managed to dig up (this seems to be the source of the problem): desrt@moonpix:~$ fc-match Courier n022003l.pfb: "Nimbus Mono L" "Regular" desrt@moonpix:~$ fc-match Courier:spacing=0 n022024l.pfb: "Nimbus Mono L" "Bold Oblique" Behdad says he can reproduce this so I'm reopening and reassigning.
For some reason the Nimbus Mono L Bold Oblique is not getting any spacing value detected for it, and that happens to better match 0 than the spacing=100 in the rest of them. Investigating.
In fact the question is why does fontconfig detect spacing=100 (FC_MONO) for the three of them.
Sorry. It's Mono after all, so detecting spacing=100 is correct. It fails for Bold Oblique version though. Another question I guess is, why does poppler request for spacing=0 instead of leaving that pattern field empty?
Glyph 227 of Nimbus Mono L Bold Oblique has a width much wider than the rest of the glyphs in the font (740 vs 600), so the font is detected as having proportional spacing, not mono spacing.
No idea if there's any upstream for urw-fonts. Reported to Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=478332
Actually this was fixed in poppler earlier this year. Poppler now doesn't set spacing unless it wants to ask for mono. Dupping. *** This bug has been marked as a duplicate of bug 14883 ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.