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)

x86
Windows 98
enhancement

Tracking

()

VERIFIED FIXED

People

(Reporter: bugzilla, Assigned: rods)

References

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?
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
Why do we have to stick with the monospace for quirks mode?
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.
Fair enough.  Would be nice to get this for standard/strict, at least.
That is up to the style/UI police.
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
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.
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).
cc erik

rod, per german's last comment, could you please make this change?
Keywords: polish, rtm
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
Whiteboard: Fix in hand
Marking nsbeta3+
Whiteboard: Fix in hand → [nsbeta3+]Fix in hand
Depends on: 33312
Blocks: 48907
No longer blocks: 48907
Depends on: 48907
Setting priority to P1
Priority: P3 → P1
Target Milestone: M17 → M18
*** Bug 49883 has been marked as a duplicate of this bug. ***
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.
Setting priority to P3 according to new criteria
Priority: P1 → P3
So does this still mean no variable-width in quirks mode?  If so, and strictDTD 
is being removed, then...
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.
fixed
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
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.
Reopening.

Rod, what is the font & size of the 'new default'?
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
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
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 ago24 years ago
Resolution: --- → FIXED
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
*** 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.