Closed Bug 223792 Opened 22 years ago Closed 22 years ago

fonts in form elements larger than surronding text

Categories

(Core Graveyard :: GFX: Gtk, defect)

x86
Linux
defect
Not set
major

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: bugs, Assigned: blizzard)

Details

Attachments

(4 files)

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 Slashdot.org or MasterZDM.com 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.
Attached file Testcase HTML
This is a screenshot of that HTML.
Attached image Slashdot screenshot
Obligary Slashdot screenshot, comparing normal text with form text.
Screenshot of MasterZDM.com, showing that textbox forms don't exhibit the same bugs.
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
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?
about:buildconfig Build platform target i686-pc-linux-gnu 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
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"
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?
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?
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.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
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.

Attachment

General

Creator:
Created:
Updated:
Size: