Closed Bug 59933 Opened 25 years ago Closed 24 years ago

Mozilla font size prefs shouldn't affect chrome fonts

Categories

(Core :: CSS Parsing and Computation, defect, P3)

defect

Tracking

()

VERIFIED FIXED
mozilla0.9

People

(Reporter: havill, Assigned: pierre)

References

Details

(Keywords: modern)

Attachments

(5 files)

Under some Japanese systems (like Red Hat Linux 7J), the text in the mailnews interface such as "Get Mail" and "Send Mail" is larger than normal because of the default font used on Japanese systems. This increases the amount of vertical space that the toolbar takes up, and produces an unsightly white "blank" area at the bottom of the toolbar because the theme/skin only fills up a set amount of space based on a Latin-1 font.
Confirming based on screenshot, but this isn't a UI design issue, it's an implementation issue. Over to Themes. Does this also happen with the Classic theme?
Status: UNCONFIRMED → NEW
Component: User Interface: Design Feedback → Themes
Ever confirmed: true
QA Contact: mpt → pmac
The font is still large like Modern, but Classic looks ok. (IOW, no "white clip" with the font decenders for "g" spilling past the skin. Blue also looks fine.
I also see this. The text size of navigation toolbar seems to obey to Japanese's variable-width font settings. My build is 2000112204-Mtrunk on Win98J.
I also see alignment problems with the larger fonts with mailnews and the "Blue" theme (look at the drop-down "triangle" under the print button icon... with the larger text, the triangle is lost in the middle of the "Print" text and looks like a graphics glitch)
Adding ben + erik so they can ( hopefully ) comment.
Yes, I have heard of many problems with the Modern theme. It hard-codes fonts (instead of using CSS system fonts), and it hard-codes various UI element sizes (bad bad).
System font coming soon to Modern. Sending to Joe to close this bug when system fonts supported in Modern.
Assignee: hangas → hewitt
Fixed - see fix for 16729.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
2000122105 on Win98J still has this problem.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Koike, I've tested this with very large fonts on windows and don't see the problem with the extra white space that you describe. Can you please explain what you are seeing that looks wrong, and perhaps include a screen shot?
Status: REOPENED → ASSIGNED
I didn't refer to the white space. The problem I still see is the text size of navigation toolbar changes according to the Japanese's variable-width font setting. Modern and Blue theme have this problem. Classic theme works fine. I'll attach the screenshot.
Attached image Screenshot
Koike, perhaps I'm not clear on the way font settings are working on your system. In your screen shot it appears one of your system font settings, the one that corresponds to the CSS2 system font "message-box", is set to a very large size. Is this because when you read Japanese text you prefer that size, but in the case of reading English you don't want to adopt that size?
I haven't changed "message-box" settings. The problem is that the text size of navigation toolbar shoudn't be changed when the font size is changed with preferences dialog.
Ok, I see the problem now. Changing summary...
Priority: P3 → P4
Summary: Text under mailnews buttons too big with certain fonts/languages → [Modern] Mozilla font size prefs shouldn't affect chrome fonts
*** Bug 64824 has been marked as a duplicate of this bug. ***
Themes Triage Team nsbeta1+
Keywords: nsbeta1
Priority: P4 → P3
Target Milestone: --- → mozilla0.9
Keywords: modern
Summary: [Modern] Mozilla font size prefs shouldn't affect chrome fonts → Mozilla font size prefs shouldn't affect chrome fonts
I've determined the problem here, and it goes beyond themes. Whenever the font-size css property is set to a relative value, like "smaller", the font is rendered in a value that is relative to the user's font settings. This is incorrect, as the value should be relative to the inherited font-size. Moving this bug over to Style System.
Assignee: hewitt → pierre
Status: ASSIGNED → NEW
Component: Themes → Style System
QA Contact: pmac → ian
hewitt: that does not appear to be true, per this test case: http://www.hixie.ch/tests/adhoc/css/fonts/size/001.xml Reassigning back to Themes. If you still think it is a style system bug, please attach a test case that shows the problem. Thanks...
Assignee: pierre → hewitt
Component: Style System → Themes
QA Contact: ian → pmac
(Broke bug 72164 out of this bug.)
Status: NEW → ASSIGNED
Themes Triage Team Marking nsbeta1+
Keywords: nsbeta1nsbeta1+
I do still think this is a style system problem. The test case I'm about to attach clearly demonstrates the problem.
Assignee: hewitt → pierre
Status: ASSIGNED → NEW
Component: Themes → Style System
QA Contact: pmac → ian
I think the bug happens when |smaller| results in a font size that is smaller than the |xx-small| of the font size selected in the prefs.
I'm going to attach diffs. When a |smaller| font size results in something smaller than the |xx-small| of the base font, we use the parent's font size. Same thing for |larger| and |xx-large|. Marc, could you review?
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: PC → All
Attached patch diffsSplinter Review
The diffs look fine - [s]r=attinasi Pierre, how did you test this? Did Hewitt's testcase demonstrate the problem and solution?
Joe's excellent testcase did show the problem before and not after. I also checked with http://www.w3.org/Style/CSS/Test/current/sec526.htm Thanks for the review.
fix checked in nsCSSStyleRule.cpp
Status: ASSIGNED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → FIXED
verifying based on commetns
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: