Monospace text is printed with low quality to Postscript file

RESOLVED INCOMPLETE

Status

()

Firefox
General
--
major
RESOLVED INCOMPLETE
9 years ago
5 years ago

People

(Reporter: Manuel Lemos, Unassigned)

Tracking

3.6 Branch
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [FF3.x])

Attachments

(4 attachments)

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009012700 SUSE/3.0.6-0.1 Firefox/3.0.6
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009012700 SUSE/3.0.6-0.1 Firefox/3.0.6

When printing a page with mostly monospace text (<pre>), Firefox 3 generates a very low quality Postscript file as you may see in kghostview. The same happens when saving to PDF.

When importing it to scribus, it does not show anything.

When using Firefox 2 the quality is very good and the text could be edited in scribus.

Reproducible: Always

Steps to Reproduce:
1. Open a page just with text within a <pre> section.
2. Print the page to a Postscript file
3. View the generated Postscript in kghostview and try import it to scribus
Actual Results:  
Low quality graphics is rendered as text.

Nothing appears when importing to scribus 

Expected Results:  
The same as in Firefox 2: good quality graphics to rendered as text and the text appears when importing to scribus.

Sample files will be attached.
(Reporter)

Comment 1

9 years ago
Created attachment 364797 [details]
Sample page with monospace text
(Reporter)

Comment 2

9 years ago
Created attachment 364798 [details]
Print to file in Postscript format
(Reporter)

Comment 3

9 years ago
Created attachment 364799 [details]
Print to file in Postscript format under Firefox 2
(Reporter)

Comment 4

9 years ago
Created attachment 364800 [details]
Print to file in PDF format

Comment 5

9 years ago
The font selected is a bitmap font so printing it is always going to look ugly. What is your default monospace font set to in preferences? Try changing it to a TrueType font like DejaVu Sans Mono or Bitstream Vera Sans Mono.
(Reporter)

Comment 6

9 years ago
I was using Adobe Courier which looks fine on my screen. I changed to a TrueType font as you suggested and now it looks fine.

Anyway, in Firefox 2 I did not have this problem, as you may see by the sample Postscript file attached to this report.

Something changed in Firefox 3, so the quality now depends on whether you choose TrueType fonts.

Comment 7

9 years ago
Printing with CutePDF as the print driver exhibits similar behavior (Windows XP SP3). 

Apparently, FF 2.0.0.20 and FF 3.5 do not render fonts the same way. Under FF 2.0.0.20, printing an html document containing Courier, Helvetica and Helvetica-Bold fonts generates a PDF where CutePDF substitutes CourierStd, ArialMT and Arial-BoldMT. When printing the very same html document from Firefox 3.5, CutePDF substitutes two True Type custom fonts (TTE109B009t00, TTE1997920t00). In testing with other documents, 

I also found FF 3.5 printing to CutePDF now converts the Courier font to a graphic image of the original text. Firefox 2.0.0.20 does not exhibit this behavior. The result is that CutePDF generates a significantly larger PDF when used with Firefox 3.5.
Reporter, please retest with Firefox 3.6.12 or later in a fresh profile (http://support.mozilla.com/kb/Managing+profiles). Also update your plugins (flash, adobe reader, java, quicktime, silverlight, etc.) Go to the developer's website and download the latest version from there. If you no longer see this issue, please close this bug as RESOLVED, WORKSFORME. If you do see the bug, please post a comment.
Whiteboard: [CLOSEME 2010-12-01]
(Reporter)

Comment 9

8 years ago
I still see this issue if the monospace font option is set to a bitmap font like Adobe Courier as mentioned above. Changing to a TrueType font improves the quality monospaced text is still converted to bitmaps.

IMHO, I think the generated Postscript should use a PostScript font built-in the printers like Adobe Courier, instead of converting font letters to bitmaps.

Updated

8 years ago
Whiteboard: [CLOSEME 2010-12-01]
Version: unspecified → 3.6 Branch

Comment 10

5 years ago
Reporter, can you still reproduce using a current version?
If no, please set status to RESOLVED and resolution to WORKSFORME.
If yes, please provide updated information.
Whiteboard: [closeme 2013-07-25][FF3.x]

Comment 11

5 years ago
Resolved per whiteboard
Status: UNCONFIRMED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → INCOMPLETE
Whiteboard: [closeme 2013-07-25][FF3.x] → [FF3.x]
You need to log in before you can comment on or make changes to this bug.