I've got two problems printing out program listings on web pages from Sun's website, using Firefox in Windows, and was wondering how I might diagnose/correct the problem.
Here's an example page. The regular text prints fine but the fixed-width font is very problematic; it looks fine on screen but in a print out the characters are all jumbled like the kerning has gone horribly awry... and I also have the "Mah Jong" effect: instead of whitespace characters at the beginning of the line, I see a bunch of square characters with what looks like
+--+
|00|
|20|
+--+
inside, which I guess is the printer driver's way of complaining that this is a unicode character that it doesn't know how to print. (why it doesn't know how to print out a space is beyond me....)
Any suggestions?
Answer
It appears to be a bug with the way Firefox handles Courier as opposed to Courier New.
http://blog.twaddington.com/2009/04/firefox-308-prints-garbage-fixed-width-text-courier/
Try printing the page above and see if there's a difference for you. IE and Chrome print this just fine. Opera circumvented this by substituting another font, albeit variable width. The link above has a Greasemonkey script as a workaround.
Comments
Post a Comment