Closed
Bug 44656
Opened 24 years ago
Closed 24 years ago
[FIX html.css]Change default font of HTML textboxes/textareas
Categories
(Core :: Layout: Form Controls, enhancement, P3)
Tracking
()
VERIFIED
FIXED
M18
People
(Reporter: bugzilla, Assigned: rods)
References
(Depends on 1 open bug)
Details
(Keywords: polish, Whiteboard: [nsbeta3+]Fix in hand)
[Build ID: 2000070608]
Is it possible to have a nice variable-width font (like Arial) in HTML
textboxes (like IE has, and like we have in the URL bar) or must we stick with
the ugly monospace?
Assignee | ||
Comment 1•24 years ago
|
||
We can choose to have a different font font like arial when in standard/strict
mode. But for the default which is NavQuirks mode we are stuck with the
monospace font. reassigning to to the L&F folks.
Assignee: rods → german
Severity: normal → enhancement
Target Milestone: --- → M22
Reporter | ||
Comment 2•24 years ago
|
||
Why do we have to stick with the monospace for quirks mode?
Assignee | ||
Comment 3•24 years ago
|
||
Because the font determines how the text control sizes, and if it doesn't size
exactly the same as NavQuirks, a lot pages probably won't layout correctly. We
have worked very hard to try to get the pages to layout the same.
Reporter | ||
Comment 4•24 years ago
|
||
Fair enough. Would be nice to get this for standard/strict, at least.
Assignee | ||
Comment 5•24 years ago
|
||
That is up to the style/UI police.
Comment 6•24 years ago
|
||
I just ran into this too. From my point of view, there is no logic in allowing
CSS changes to the font of INPUT[type=text] elements, but not to the font of
TEXTAREAs.
Beside logic or not, without a possibility to change the TEXTAREA font, site
designers may be forced to do a re-design (proportional fonts and the ugly
Courier usually don't mix well). Imagine site designs completly done without a
monospace font...
Just my opinion.
Are we talking about the default font for standard/strict mode if the page author
has not spec'd anything different with CSS?
If so yes it should be something like sans-serif by default.
assining back to rods, since I do not really have anything to do with its
implemenation
Assignee: german → rods
Comment 8•24 years ago
|
||
My comment was about the possibility to specify a font via CSS for TEXTAREAs.
This does not work for me in Standard mode (Transitional DTD). I find this very
annoying, because it is a) different from all other controls and b) it is
different from IE.
If no font has been spec'ed from the page's author, monospace or whatever has
been set in the prefs would be a natural choice.
Reporter | ||
Comment 9•24 years ago
|
||
Matthias: you're talking about a separate issue.
German: yes, I'm referring to the default font for textboxes and textareas,
assuming no other font is specified in the page. Right now, we use an ugly
monospace font (e.g. Courier), while IE uses *much* nicer fonts (e.g. Arial).
Reporter | ||
Comment 10•24 years ago
|
||
cc erik
rod, per german's last comment, could you please make this change?
Assignee | ||
Comment 11•24 years ago
|
||
Then the solution will be to have the font setting "moz-fixed" for NavQuirks
mode and sans-serif for strict
Status: NEW → ASSIGNED
Keywords: nsbeta3
Summary: Change default font of HTML textboxes/textareas → [FIX html.css]Change default font of HTML textboxes/textareas
Target Milestone: M22 → M17
Assignee | ||
Updated•24 years ago
|
Whiteboard: Fix in hand
Assignee | ||
Updated•24 years ago
|
Target Milestone: M17 → M18
Reporter | ||
Comment 14•24 years ago
|
||
*** Bug 49883 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 15•24 years ago
|
||
Here is something facinating about how IE sizes their controls:
The algorthim appears to be:
default font: (ave_char_width * (size_attr+1)) + 6
monospace: (ave_char_width * size_attr) + 7
serif: (ave_char_width * (size_attr+2)) + 6
arial: (ave_char_width * (size_attr+2)) + 5
So basically, I can't seem to find a consistent algorithm. So I will probably go
with the default algorithm so we size the same in the default font.
Reporter | ||
Comment 17•24 years ago
|
||
So does this still mean no variable-width in quirks mode? If so, and strictDTD
is being removed, then...
Comment 18•24 years ago
|
||
Rod: Once you've done whatever needs doing in code for this bug, please
reassign to me so that I can integrate the html.css and quirk.css changes with
my versions. Cheers.
Assignee | ||
Comment 19•24 years ago
|
||
fixed
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 20•24 years ago
|
||
Now the fonts on Linux are huge. Text input fonts are ~18 points monospace.
Select boxes are ~18 points bold sans serif.
Linux build 2000-09-06-08.
Comment 21•24 years ago
|
||
Reopening.
Rod, what is the font & size of the 'new default'?
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 22•24 years ago
|
||
I am not sure what the default font is suppose to be on Linux. I think it should
be a helvetica like 10 or 12 point font.
Status: REOPENED → ASSIGNED
Comment 23•24 years ago
|
||
This bug is fixed. The size of the font in the testarea's and textfield is
controlled by the CSS3 fonts. The size problem gtk is already covered by bug
48907.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Comment 24•24 years ago
|
||
Marking VERIFIED FIXED on:
- LinuxRH62 2000-09-13-08-M18 Commercial
- Win98 2000-09-13-08-M18 Mozilla
- MacOS86 2000-09-13-04-M18 Commercial
Status: RESOLVED → VERIFIED
Comment 25•23 years ago
|
||
*** Bug 92446 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•