Closed Bug 135408 Opened 22 years ago Closed 22 years ago

[ps] Printing a page to PostScript calls non existing "Helvetica_Oblique"

Categories

(Core :: Printing: Output, defect, P1)

defect

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: gert, Assigned: rods)

References

()

Details

Attachments

(1 file)

1.00 KB, patch
drbrain-bugzilla
: review+
bzbarsky
: superreview+
dbaron
: approval+
Details | Diff | Splinter Review
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:0.9.9) Gecko/20020311
BuildID:    2002031103

When printing a page to PostScript mozilla includes the line
 /Helvetica_Oblique findfont
The name of the font is wrong. It should be:
 /Helvetica-Oblique findfont
           ^
When sending this file to a PostScript printer, it results in the error message:
 Helvetica_Oblique not found, using Courier
and the resulting print will be suboptimal.


Reproducible: Always
Steps to Reproduce:
1. Ctr-P
2. choose Print To: File
3. click Print

Actual Results:  a file "mozilla.ps" (or whatever name you choose) is printed.
the command: 
  grep Helvetica mozilla.ps
results in:
    /Helvetica findfont
    /Helvetica-Bold findfont
    /Helvetica-BoldOblique findfont
    /Helvetica_Oblique findfont

The last line shows the incorrect fontname, using an underscore instead of a dash. 


Expected Results:  It should have printed:
    /Helvetica-Oblique findfont

I found this behavior in several builds of mozilla. 
The recent build mentioned above, the build that came with Gnome-1.4
provided by Sun and in the most recent Netscape-6.2 for linux.
same for me with Mozilla 0.9.9
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020313
"/Helvetica_Oblique findfont" is still what is inside mozilla.ps when printing
the page with 2002-04-04-04 on Linux. Confirming.

->NEW
Status: UNCONFIRMED → NEW
Ever confirmed: true
I must add, however, that my postscript printer does not complain about the font
if it's called Helvetica_Oblique. The printout is identical, at least to my eye,
with either name. But judging from a search on google, Helvetica-Oblique
certainly seams to be the right name.
Status: NEW → ASSIGNED
Keywords: nsbeta1
Target Milestone: --- → mozilla1.0
Summary: printing a page to PostScript calls non excisting Helvetica_Oblique → [PATCH]printing a page to PostScript calls non excisting Helvetica_Oblique
Attached patch patchSplinter Review
changed the "_" to a "-"
Priority: -- → P1
Target Milestone: mozilla1.0 → Future
Rods, why do you future a bug that has a trivial patch?
OS: SunOS → All
Hardware: Sun → All
nsbeta1-
Keywords: nsbeta1nsbeta1-
For the record, we've found a printer at our site that chokes on the printout 
because of this font name.  When we edit the file to change the name to 
Helvetica-0blique, it prints successfully.  The printer is an "HP Color Laserjet
8550DN"
I'm using mozilla 1.1, and this ***TRIVIAL*** bug is still not fixed.  It
destroys output on several printers, including my Brother HL-1650 printer.  Note
that ghostscript cannot find the font either (duh!), but it has a better
algorithm to find a similar font than most printers, which means that
ghostscript users won't have a problem.

Please fix it for the next 1.0.x and 1.1.x!!!
Summary: [PATCH]printing a page to PostScript calls non excisting Helvetica_Oblique → [ps] Printing a page to PostScript calls non existing "Helvetica_Oblique"
Attachment #77829 - Flags: review+
Comment on attachment 77829 [details] [diff] [review]
patch

sr=bzbarsky, noting that the r= was drbrain-bugzilla@segment7.net
Attachment #77829 - Flags: superreview+
Checked in for 1.2alpha.  Thanks to Mark Roberts for bringing this bug up on
n.p.m.unix.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
*** Bug 175723 has been marked as a duplicate of this bug. ***
*** Bug 190923 has been marked as a duplicate of this bug. ***
*** Bug 227535 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: