fonts in form elements larger than surronding text



15 years ago
10 years ago


(Reporter: bugs, Assigned: blizzard)



Firefox Tracking Flags

(Not tracked)



(4 attachments)



15 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030915
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030915

In any page that uses forms that require single lines of text, Mozilla uses a
much larger font than what is normally used in text.  This font should match if
not be slightly smaller than normal.

Reproducible: Always

Steps to Reproduce:
Pull up any page using forms, including or
Actual Results:  
Form elements use a larger font than normal text.

Expected Results:  
The same font size should be used.

I'm using the Slackware 9.1 build of Mozilla 1.4, built with gtk2.0 and using
Microsoft's fonts grabbed from a copy of Win2K.

Comment 1

15 years ago
Created attachment 134220 [details]
Testcase HTML

Comment 2

15 years ago
Created attachment 134221 [details]
Results of the testcase HTML

This is a screenshot of that HTML.

Comment 3

15 years ago
Created attachment 134222 [details]
Slashdot screenshot

Obligary Slashdot screenshot, comparing normal text with form text.

Comment 4

15 years ago
Created attachment 134223 [details] ( screenshot

Screenshot of, showing that textbox forms don't exhibit the same
What build options did you use?  (What are the contents of about:buildconfig .)

This could be a result of enabling GTK2 but not enabling Xft.  In any case, it's
probably a GTK system fonts problem.
Assignee: font → blizzard
Component: Layout: Fonts and Text → GFX: Gtk

Comment 6

15 years ago
Using 1.4.1 20031009, which comes in severn 0.95, I can't see a problem either
in the testcase or on Slashdot or MasterZDM, but I can't see it in your
screenshots either. What does xdpyinfo report for DPI?

Comment 7

15 years ago

Build platform

Build tools
Compiler 	Version 	Compiler flags
gcc 	gcc version 3.2.3 	-Wall -W -Wno-unused -Wpointer-arith -Wcast-align
-pedantic -Wno-long-long -O2 -march=i486 -mcpu=i686 -pthread -pipe
c++ 	gcc version 3.2.3 	-fno-rtti -fno-exceptions -Wall -Wconversion
-Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy
-pedantic -Wno-long-long -fshort-wchar -pthread -pipe

Configure arguments
--prefix=/usr --enable-optimize --disable-debug
--with-default-mozilla-five-home=/usr/lib/mozilla-1.4 --enable-strip-libs
--disable-tests --disable-short-wchar --enable-nspr-autoconf
--enable-extensions=default,irc --enable-crypto --disable-xprint
--without-system-nspr --with-system-zlib --enable-default-toolkit=gtk2
--disable-freetype2 --enable-xft 

Comment 8

15 years ago
Built a copy of the 1.5 release just in case, and nada.  about:buildconfig reports:

--prefix=/usr --enable-optimize --disable-debug
--with-default-mozilla-five-home=/usr/lib/mozilla --enable-strip-libs
--disable-tests --disable-short-wchar --enable-nspr-autoconf --enable-crypto
--disable-xprint --without-system-nspr --with-system-zlib
--enable-default-toolkit=gtk2 --disable-freetype2 --enable-xft 

I'm using a dpi of 135, and my .gtkrc-2.0 is:

style "default"
        font_name = "Arial 7"

class "*" style "default"

Comment 9

15 years ago
Does changing the dpi affect it (could be bug 197037) or the default UI font? 
How about playing with the fonts settings in mozilla's UI?

Comment 10

15 years ago
I'm not sure what you mean.  Right now, I have the X server repor the DPI as
135, and I've told GTK 2.0 to use Arial 7 as it's font.  Mozilla's taking that
in for the core UI font... but that's not what's being used for the text in the
webpage fonts -- it's definetly using Times New Roman.

Could it be that Mozilla's supposed to use the system-defined UI Font (Arial in
my case) instead of the webpage font (Times New Roman) by default?

Comment 11

15 years ago
No, it uses whatever the web page and the prefs inside of Mozilla tell it to. 
See the fonts prefs dialog in preferences.  You can change the mappings for the
generic CSS fonts, but sometimes web pages specify fonts other than the default
CSS fonts.

You can probably work around this if you are really dedicated by changing your
userChrome.css file.
Last Resolved: 15 years ago
Resolution: --- → INVALID

Comment 12

15 years ago
Which pref is this in userChrome.css?  Right now, I have this:

* {
    font-family: Arial !important;
    font-size: 7pt !important;

input {
    font-family: Arial !important;
    font-size: 8pt !important;
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.