Closed Bug 129371 Opened 24 years ago Closed 24 years ago

Mozilla uses wrong font to display page when lang=se

Categories

(Core :: Internationalization, defect)

x86
Linux
defect
Not set
major

Tracking

()

VERIFIED DUPLICATE of bug 128338

People

(Reporter: mavos, Assigned: shanjian)

References

()

Details

(Keywords: intl)

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020214 BuildID: 20020214 The test page is rendered using MS Comic Sans on my system, instead of Times New Roman. Also, if I start selecting text, the selection runs faster than the mouse cursor. It feels lika I'm selecting the text rendered in Times, which is smaller than Comic Sans, but the selection is reflected on the Comic Sans text. I don't understand why Comic Sans is used anyway, because I have never chosen it to be used by Mozilla, and the page doesn't specify any font to be used either. I see this problem a lot, especially with pages I make myself. It is extremely annoying. Reproducible: Always Steps to Reproduce: 1. Open the test page. 2. Look at it. 3. Try selecting some text. Actual Results: Wrong font, Comic Sans for me but I've seen other fonts, selection doesn't follow cursor. Expected Results: Should be sans-serif, selection should work as expected.
The page specifies language as "se", and I don't think Mozilla understands that specification. Other languages use the correct font. I get courier with Linux build 20020305, and also the same thing with the cursor. That might be another bug that is just exposed by because it got the wrong font in the first place. Please move this over to Internationalization (they handle font issues).
Attached file NS_FONT_DEBUG=D
this a log from a page with just <html lang="se"> hello </html>
Language being "se" shouldn't make Mozilla use some weird font. It's still charset ISO-8859-1 and Mozilla should use the default font for that encoding. It doesn't.
absolutely! please change the component to Internationalization (and reassign to default owner) so they can fix it.
Attempting to change component and owner... not sure if I'm allowed to...
Assignee: attinasi → yokoyama
Component: Layout → Internationalization
QA Contact: petersen → ruixu
Keywords: intl
QA Contact: ruixu → ylong
Ok... embarassing but true. I have apparently been using "se" instead of "sv", which is the real language code for Swedish, for quite some time. No excuse for this bug, though, but silly me...
I can see the problem on RH7.2 / 03-06 trunk build when lang=se, but not with lang=sv. Conform.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Mozilla uses wrong font to display page → Mozilla uses wrong font to display page when lang=se
-> shanjian and cc bstell
Assignee: yokoyama → shanjian
From attachment 72889 [details]: find font based on lang group, nsFontMetricsGTK.cpp 4672 lang group = , nsFontMetricsGTK.cpp 4687 ^^ It appears we do not recognize the language group so we end up loading: loaded -adobe-courier-medium-r-normal--16-*-0-0-m-*-iso8859-3 which is Southern European. In comment #3: > It's still charset ISO-8859-1 Is this in the meta charset tag? It seems to me that the language group is not correctly identified. This would indicate that this is a language group identification issue not a font issue. (Morton/timeless: can you see the necessity of these debug statements? Without out these we would not have any idea what is happening here.)
this is a dup of 128338. We did observe html "lang" attribute now, but we have a problem in handling unknown language name. Those name should be default to western language group. See bug 128338 for detail. *** This bug has been marked as a duplicate of 128338 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
It's a dup for me too, mark as verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: