Closed Bug 305109 Opened 19 years ago Closed 19 years ago

changing default font size does not affect font size on form buttons and input fields.

Categories

(Core :: Layout: Form Controls, enhancement)

1.0 Branch
x86
Linux
enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: bugzilla, Unassigned)

References

()

Details

Attachments

(5 files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.11) Gecko/20050729
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.11) Gecko/20050729

Linux only rendering problem?

Reproducible: Always

Steps to Reproduce:
1. Open http://www.google.de
2. Open Preferences -> Appearance -> Fonts 
3. Set "Size" to 70 pixels

Actual Results:  
Page renders with humongous font but the form elements don't change in size,
namely the buttons and the input field line.

Expected Results:  
Try the same on Mozilla for Windows and you'll see that the form fields do scale
as well (are huge now, too).
Can you copy the last line from the URL about:buildconfig and paste in the bug
here (the line under Configure arguments)?
I see what the reporter sees with gtk2/xft both Mozilla/5.0 (X11; U; Linux i686;
en-US; rv:1.7.10) Gecko/20050719 Firefox/1.0.6 Mandriva/1.0.6-6mdk (2006.0) and
trunk Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b4) Gecko/20050811
SeaMonkey/1.0a and with gtk1 Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b4)
Gecko/20050729 SeaMonkey/1.0a but cannot reproduce in OS/2 or win. The page's
charset is utf-8 with no doctype fetched with Gecko, and I changed font prefs
variously to 36, 40, 48 & 64 for western, central european, and unicode. Fetched
with wget the charset is iso-8859-1. It seems as though the form elements are
sized in pt or px, but I can't see this in the source. Is 'input {font:
-moz-field;}' in forms.css set in pt and doing this?
I was able to eliminate the bad behavior by editing res/forms.css to change
'font: -moz-field' to 'font: small sans-serif' and 'font: -moz-button' to 'font:
small sans-serif'.
Assignee: general → nobody
Component: General → Layout: Form Controls
Product: Mozilla Application Suite → Core
QA Contact: general → layout.form-controls
Version: unspecified → 1.0 Branch
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050818
Firefox/1.0+ ID:2005081808

WFM in WinXP.
(In reply to comment #1)
> Can you copy the last line from the URL about:buildconfig and paste in the bug
> here (the line under Configure arguments)?

It happens both with Debian build and the off-the-stock download version.

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050718
Debian/1.7.8-1sarge1

--enable-svg-renderer-libart --prefix=/usr --sysconfdir=/etc
--mandir=/usr/share/man --infodir=/usr/share/info --localstatedir=/var
--disable-pedantic --with-default-mozilla-five-home=/usr/lib/mozilla
--disable-debug --disable-tests --disable-short-wchar --enable-xprint
--enable-strip-libs --enable-crypto --enable-mathml --enable-oji
--enable-extensions=all --enable-ldap --enable-freetype2
--enable-default-toolkit=gtk2 --enable-toolkit=gtk2 --disable-gnomevfs
--enable-xft --disable-installer --with-gssapi=/dev/null --enable-svg
--without-system-mng --without-system-png


Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.11) Gecko/20050729
--enable-application=suite --enable-extensions=default,irc,tasks,negotiateauth
--disable-tests --disable-debug '--enable-optimize=-O2 -gstabs+'
--without-system-nspr --without-system-zlib --without-system-jpeg
--without-system-png --without-system-mng --without-system-mng --enable-crypto
I opened Mozilla (the Debian version), created a new profile and went to
www.google.de, set the default font size to 72 px and took a screenshot.
(In reply to comment #3)
> I was able to eliminate the bad behavior by editing res/forms.css ...

Yes Yes yes yes, that's it. That resolves my problems I was fighting with the
last few days.

Thank you very much, Felix. You saved the weekend :-)

The font sizes for form controls come from the system's fonts for form controls.
 (In this case, GTK's.)  That's intentional.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WONTFIX
Hello David.

> The font sizes for form controls come from the system's fonts for form 
> controls.  (In this case, GTK's.)  That's intentional.

Is this the case even if "--enable-default-toolkit=gtk2 --enable-toolkit=gtk2"
is not shown in buildconfig? 

And why do the form controls scale in Windows but not in Linux, if one changes
the font size in Preferences->Appearance->Fonts ?



David, 

if the Mozilla's form controls fonts are controled by GTK, I should be able to
control them changing GTK settings.

As I am running KDE, I first installed the Debian packet "gtk2-engines-gtk-qt"
to control the the GTK applications through KControl. Then I opened KControl and
set all fonts to 64. Now I opened www.google.de in Mozilla but the form controls
did not change in size.

So if you say, form controls size is set through GTK, can you tell me where's
the place to configure them, please?
Did you restart the browser?  Did you remove your changes to forms.css?  Are you
sure whatever you described is really changing the GTK theme?
Surely something is wrong somewhere that current Konqueror does exactly what we
do on Windows but on Linux we do something so radically different?
This is how a freshly installed Mozilla 1.7.11 displays www.google.de (using a
new profile, i.e. factory defaults).
Ex1: This is how a standard Debian-Mozilla 1.7.8 displays www.google.de (using
a
new profile, i.e. factory defaults) and setting GTK fonts to 9px using
kcontrol/gtk2-engines-gtk-qt.
Ex2: This is how a standard Debian-Mozilla 1.7.8 displays www.google.de (using
a new profile, i.e. factory defaults) and setting GTK fonts to 12px/default
using
kcontrol/gtk2-engines-gtk-qt.

12px is the default for Gnome/GTK. Looking at the rendered page, the font size
for input field and buttons is the same. But this size is larger than "normal"
text.

This is a discrepancy to Mozilla on Windows, where all font sizes match: input
field, buttons and "normal" text are rendered in the same size.



Mozilla on Windows displays "normal" text
(In reply to comment #11)
> Did you restart the browser?  Did you remove your changes to forms.css?
>  Are you sure whatever you described is really changing the GTK theme?

Yes to all questions. Finally I managed to set the GTK font through
gtk2-engines-gtk-qt plugin for KControl, the result is shown in the screenshots.

What I do not understand:

When I change the font size in Mozilla/Firefox preferences, the form controls
scale on Windows. Why not on Linux, too?
As the bug reported has been rejected, I'd like to submit it as an enhancement
request instead. This also allows for a discussion to take place.

Reasoning:
Changing the font size is not only relevant for visually impaired people, but it
also may come in handy when your funky new high resolution flat panel displays
your favourite web page just too small :-)

I know, one can not demand Firefox to render web pages exactly the same on
Windows and Linux, but at least it should strive to do so.


In short: this enhancement request is targeted on improving accessibility and
cross system consistency.
Severity: normal → enhancement
Status: RESOLVED → UNCONFIRMED
Resolution: WONTFIX → ---
Accessibility is already happening -- buttons in Gecko use the button font the rest of your GTK apps are using...  That's the whole point.  If the font on buttosn in Gecko is too small, it's also too small in your other apps...
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → WONTFIX
Boris, 

unlike in Windows, in Linux one has to adjust the size at _two_ different locations: a) in Firefox Preferences for font size, b) in GTK+ Control for size of form elements.

So, if a page displays too small, first I'll have to increase text size using Firefox preferences and second I'll have to use a seperate gtk control to increase size of form elements until they match the text size. This is awkward.

Thus is I think: having only *one* place to adjust both font size and size of form elements is a good idea and therefore a valid enhancement request.

Are you saying this is impossible to implement or what exactly is your reason to reject my enhancement request?
The reason is that we want to be rendering buttons using the OS-default button font, which is unrelated to the default _text_ size you set in browser preferences.  The only reason we have a font size setting at all is that there is no reasonable OS default font size for "lots of text you need to read".
Reporter, it's pretty typical of web designers to provide their own CSS to overrule the default button presentation. On those that don't, you can have the result you want for your own profile(s) by using userContent.css as described on http://www.mozilla.org/unix/customizing.html . A rule in that file that would probably do what you want if you go that route is:

input[type="button"],
input[type="file"],
input[type="reset"],
input[type="submit"]
     {font: medium sans-serif; !important;}

If your default font choice is serif, substitute serif for sans-serif, and if medium is too big, try small instead of medium.

Personally I'd like to see some pref to opt for Linux to behave like other platforms.
Hello Boris!
(In reply to comment #20)
> The reason is that we want to be rendering buttons using the OS-default button
> font, which is unrelated to the default _text_ size you set in browser
> preferences.  The only reason we have a font size setting at all is that there
> is no reasonable OS default font size for "lots of text you need to read".

Reality defeats your argument :-)

With FF on Linux, open e.g. www.google.com and use Ctrl++ oder Ctrl+- to increase/decrease text size. Strangely enough, this way the text input field and the buttons resize even on Linux.

How's that possible? Didn't you say, the text size set in the browser is unrelated to the button font?
> How's that possible?

Font zoom zooms all fonts, no matter where the size information comes from.  For example, it'll zoom fonts set to "font-size: 1cm".  By your argument, that means that it changes the length of a centimeter?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: