Closed Bug 298234 Opened 20 years ago Closed 19 years ago

<pre> text rendered in variable width font, not monospace, despite CSS declaration

Categories

(Core :: Layout, defect)

1.7 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jhart, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050517 Firefox/1.0.4 (Debian package 1.0.4-0.0.0.50.linspire0.1)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050517 Firefox/1.0.4 (Debian package 1.0.4-0.0.0.50.linspire0.1)

This code:
<pre>                 ICMS    Abacus
    Total users   164       136
       students    25        35
          staff    85        39
        faculty    32        51<sup><a href="#1">1</a></sup>
          other     2         6
 no longer here    20         5
</pre>
is rendered in variable width font if this code is in the CSS file:

tt,pre {
    font-family: Lucida Console,Courier New,Courier,monotype;
    font-size: 10pt;
    border-width:10px;
}

If this code is removed, the <pre> text is rendered in monospace.

This also applies to Mozilla;
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20050311
Linspire/1.6-5.1.0.50.linspire2.31


Reproducible: Always

Steps to Reproduce:
1. Just view the web page with the site.css file included.


Actual Results:  
<pre> text displayed in variable width font.

Expected Results:  
<pre> text displayed in monospace font as specified in the CSS.
wfm firefox trunk 20050617
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050620
Firefox/1.0+ ID:2005062008

WFM
Jim, please re-test with a trunk build:
https://bugzilla.mozilla.org/attachment.cgi?bugid=298234&action=enter
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Version: unspecified → 1.0 Branch
do you have the pref "Allow documents to use other fonts" disabled?  That would
be bug 79074
also, it should be "font-family:monospace", not monotype
Hardware: Other → PC
Version: 1.0 Branch → 1.7 Branch
`Always use my font settings' is off. I presume that's what you mean, as I don't
see a preference called "Allow documents to use other fonts".

I'll try the latest nightly build this weekend.
please try with a more recent build from .mozilla.org.  In general, bugs found
in a linspire-packaged build should be reported to linspire.

http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/deerpark/alpha1/
Jim Hart, did you try with a nighlty build?
Yes. It works fine, now. Sorry I didn't let you know sooner.
This is invalid, since "monotype" could have been picking up any random font...
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.