Closed Bug 292306 Opened 20 years ago Closed 17 years ago

fail rendering the letter "m" of monospace/preformatted text

Categories

(Core Graveyard :: GFX: Gtk, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: alberto.orioli, Assigned: blizzard)

Details

(Keywords: testcase, Whiteboard: CLOSEME 07/01)

Attachments

(1 file)

User-Agent:       Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
Build Identifier: Firefox/1.0

All the characters of text between the tags <pre> and </pre> should be rendered 
with a fixed width. The default font used by Firefox to render preformatted 
text has a "smaller m".
(If useful consider that Mozilla 1.4 works properly.)


Reproducible: Always

Steps to Reproduce:
Simply try to render the following.

<pre>
abcdefghijklmnopqrstuvwxyz
01234567890123456789012345
abcd    ijkl    qrst    yz
01234567890123456789012345
ABCDEFGHIJKLMNOPQRSTUVWXYZ
0                        5
0________________________5
aaaaaaaaaaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbbbbbbbb
cccccccccccccccccccccccccc
dddddddddddddddddddddddddd
eeeeeeeeeeeeeeeeeeeeeeeeee
ffffffffffffffffffffffffff
gggggggggggggggggggggggggg
hhhhhhhhhhhhhhhhhhhhhhhhhh
iiiiiiiiiiiiiiiiiiiiiiiiii
jjjjjjjjjjjjjjjjjjjjjjjjjj
kkkkkkkkkkkkkkkkkkkkkkkkkk
llllllllllllllllllllllllll
mmmmmmmmmmmmmmmmmmmmmmmmmm
nnnnnnnnnnnnnnnnnnnnnnnnnn
oooooooooooooooooooooooooo
pppppppppppppppppppppppppp
qqqqqqqqqqqqqqqqqqqqqqqqqq
rrrrrrrrrrrrrrrrrrrrrrrrrr
ssssssssssssssssssssssssss
tttttttttttttttttttttttttt
uuuuuuuuuuuuuuuuuuuuuuuuuu
vvvvvvvvvvvvvvvvvvvvvvvvvv
wwwwwwwwwwwwwwwwwwwwwwwwww
xxxxxxxxxxxxxxxxxxxxxxxxxx
yyyyyyyyyyyyyyyyyyyyyyyyyy
zzzzzzzzzzzzzzzzzzzzzzzzzz
</pre>

Actual Results:  
The lines of text containing the letter "m" are "shorter".


Expected Results:  
All the letters should "occupy" the same space.
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b2) Gecko/20050423
Firefox/1.0+

WFM

Could this be platform specific - related to the fonts available on your system?
Unfortunately I can't try and say if it is platform specific; but on the same 
PC "Konqueror 3.1.3" and "Mozilla 1.4" work properly.

The comment #1 let me intend that on Ben's platform Firefox work properly, too.

Who chose for Firefox the default font for <pre> (different in Mozilla) may be 
interested to know that in some platforms it is not the best choice.
I see this too. It's a problem with all monospace text, not just that in <pre>

It only occurs with font-size:medium. 

Gentoo Linux, Firefox 1.0.3 and recent nightly.
Component: General → Layout: Fonts and Text
Product: Firefox → Core
QA Contact: general → layout.fonts-and-text
Summary: fail rendering the letter "m" of preformatted text → fail rendering the letter "m" of monospace/preformatted text
Version: unspecified → Trunk
Different browsers use different font systems.  It's probably a bug in one of
the fonts reachable using fontconfig and Xft.
Assignee: nobody → blizzard
Component: Layout: Fonts and Text → GFX: Gtk
QA Contact: layout.fonts-and-text → ian
Attached file testcase
Reporter, you should attach your testcase to the bug so that others can just
click the link instead of creating some file to load that might wind up being
different from what you tested.

Using trunk I tested all available mono fonts on a Linux system and found no
defect in any characters. Fonts tested included andale mono, nimbus mono l,
lucida console, courier, courier new, lucida typewriter & bitstream vera sans.
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/
This bug has been automatically resolved after a period of inactivity (see above
comment). If anyone thinks this is incorrect, they should feel free to reopen it.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → EXPIRED
This bug is still here on Firefox/1.5.0.1 as shipped by Ubuntu.
Status: RESOLVED → UNCONFIRMED
Resolution: EXPIRED → ---
Confirming.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Does this bug still occur in a recent trunk build?
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/
Whiteboard: CLOSEME 07/01
I used to see this, but no longer see it in either trunk OR 1.0.8. This is just a note to anyone testing to make sure that you DO still see it in old builds: it's possible your fonts changed.

(Also, for some reason I see a different font in 1.0.8 and minefield, but they both work properly)
I have to admit it's been quite a few months since I saw this problem last. I am using Ubuntu Feisty with Firefox/2.0.0.4 and I no longer see this issue. Resolve FIXED?
I'm going to resolve this as WORKSFORME per comments 11 and 12. If you can still reproduce this, please provide details of your setup (OS, fonts installed, fonts being used, new profile?, etc) and reopen.
Status: NEW → RESOLVED
Closed: 19 years ago17 years ago
Keywords: testcase
Resolution: --- → WORKSFORME
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: