Closed
Bug 98515
Opened 25 years ago
Closed 25 years ago
Preformatted or teletype text not printed in monospaced font (postscript output)
Categories
(Core :: Printing: Output, defect)
Tracking
()
People
(Reporter: thaynes, Assigned: dcone)
References
(
URL
)
Details
Build 2001090521 on Linux (Mandrake 7.2)
When trying to print <pre> or <tt> enclosed text, monospaced fonts are not used
- times is used instead.
For example,
<html>
<head>
<title>Bad page</title>
<style type="text/css">
<!--
BODY {
color: #000000;
background-color: #fffff0;
} /* default */
-->
</style>
</head>
<body>
<pre>
Random text should be monospaced
when printed to preserve alignment
</pre>
</body>
</html>
Mozilla renders this fine. However the printed output is not so good. Looking
into the postscript generated for this text I see this near the end:
0.00 0.00 0.00 setrgbcolor
default_ls
9 f0
42 543.9 moveto
( Random text should be monospaced) show
0.00 0.00 0.00 setrgbcolor
default_ls
9 f0
42 534.9 moveto
( when printed to preserve alignment) show
0.00 0.00 0.00 setrgbcolor
The font f0 is from the Times family - it should be using f8 (Courier). It is
not enough to just change the f0 to f8 in the postscript if there are mixes of
bold italic and regular type in the <pre> ... </pre> sections as the spacings of
the fonts are wrong (presumably because the postscript engine has used the Times
font metrics).
Comment 1•25 years ago
|
||
duplicate of "[PRE ]Need support for printing preformatted plain text"
*** This bug has been marked as a duplicate of 37685 ***
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Summary: Preformatted or teletype text not printed in monospaced font (postscript output) → Preformatted or teletype text not printed in monospaced font (postscript output)
You need to log in
before you can comment on or make changes to this bug.
Description
•