Closed Bug 222870 Opened 21 years ago Closed 19 years ago

Does not use "style" font_name, only gtk-font-name

Categories

(Core :: Widget: Gtk, defect)

All
Linux
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 232492

People

(Reporter: petter.sundlof, Assigned: blizzard)

References

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20031010 Debian/1.4-6
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20031010 Debian/1.4-6

Mozilla GTK2 doesn't listen to
{
  font_name="tahoma 9"
(...) for UI font.

It only cares about gtk-font-name = "tahoma 9".

in ~/gtkrc-2.0

Reproducible: Always

Steps to Reproduce:
I'm sorry, can you explain this a little better?  I'm not sure what the problem is.
Blocks: gtk2
Mozilla doesn't read font specification of this kind

style "user-font"
{
  font_name="tahoma 9"
(STUFF)
}

widget_class "*" style "user-font"

in ~/.gtkrc-2.0.

It only respects gtk-font-name = "tahoma 9".

GTK2 applications listen to 

style "user-font"
{
  font_name="tahoma 9"
AFAIK, Mozilla doesn't listen for anything but 'style_set' (which is horrible,
it should use gtk-theme-change and friends, which - as opposed to style_set -
isn't fired 9 times in a row, forcing LookAndFeel to re-read all color and style
properties 9 times every time we get a style_set signal from GTK - or so it
appears).
Theme (as in colors) are applied, but font changes seem to be overridden or
discarded. This does not seem to be a problem with Gtk1 (in Mozilla 1.7.12).

~/.gtkrc-2.0 (font-related bits anyway):
  style "user-font"
  {
    font_name="Impact 14"
  }
  widget_class "*" style "user-font"

~/.gtkrc:
  style "user-font"
  {
    font="-monotype-impact-medium-r-condensed-*-*-140-*-*-p-*-microsoft-cp1251"
  }
  widget_class "*" style "user-font"
Severity: minor → normal
Status: UNCONFIRMED → NEW
Component: GFX: Gtk → Widget: Gtk
Ever confirmed: true
OS: Linux → All
Hardware: PC → All
(In reply to comment #4)
> Theme (as in colors) are applied, but font changes seem to be overridden or
> discarded. This does not seem to be a problem with Gtk1 (in Mozilla 1.7.12).

Isn't this the /exact/ same thing that was said in comment 0 and comment 2?

Please don't change the OS field to 'All' when this clearly is a GTK2-only bug.
Severity: normal → minor
OS: All → Linux
(In reply to comment #5)
> Isn't this the /exact/ same thing that was said in comment 0 and comment 2?
I didn't see anyone say anything about Gtk1.

> Please don't change the OS field to 'All' when this clearly is a GTK2-only bug.
Gtk2 doesn't only apply to Linux.

(In reply to comment #6)
> Gtk2 doesn't only apply to Linux.

I have yet to see any GTK2 Mozilla builds for Windows/Mac (it would be cool,
though).

*** This bug has been marked as a duplicate of 232492 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.