You are not logged in.

#1 2007-06-06 09:15:50

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Firefox not obeying GTK+ font options [SOLVED]

I attempt to change my font through switch2's "Use font" option, and Firefox refuses to reflect the changes while other GTK+ apps do. So far I've received two answers as to why it happened:

1. Firefox uses its own GTK implementation.
2. Firefox uses XUL to specify font.

What's the truth here, and how can I get Firefox to follow GTK+'s font rules? It reflects other rules just fine.

SOLVED: It seems like the best (and only?) way to edit Firefox's main font is to create ~/.mozilla/firefox/<profile_hash>/chrome/userChrome.css and add the following to it:

 * { font: <weight> <style> <size> <family> !important; }

Last edited by xelados (2007-06-08 02:37:06)

Offline

#2 2007-06-06 09:26:47

igglybuff
Member
Registered: 2007-05-23
Posts: 29

Re: Firefox not obeying GTK+ font options [SOLVED]

Have you tried "export GDK_USE_XFT=1"?

E: http://wiki.archlinux.org/index.php/Firefox#Fonts

Last edited by igglybuff (2007-06-06 09:28:32)

Offline

#3 2007-06-06 09:36:30

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Re: Firefox not obeying GTK+ font options [SOLVED]

I tried the tip outlined in the Firefox Fonts area (with setting DPI to 0). It didn't seem to change anything. Where would I use the export command? I tried it in a terminal and didn't get any output. I restarted Firefox to check and the font's still the same.

Offline

#4 2007-06-06 10:43:13

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: Firefox not obeying GTK+ font options [SOLVED]

You can test it by starting firefox from the same terminal to which to exported GDK_USE_XFT
So, in the same terminal-window, type the following sequence:

$ export GDK_USE_XFT=1
$ firefox

If you find it to work to your liking, you can add the export command to ~/.bashrc


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#5 2007-06-07 04:00:40

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Re: Firefox not obeying GTK+ font options [SOLVED]

klixon: That doesn't seem to work. Firefox's font is still Bitstream Vera Sans when my GTK+ font is Tahoma.

Offline

#6 2007-06-07 04:36:59

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: Firefox not obeying GTK+ font options [SOLVED]

try edit/modify this file:
~/.gtkrc-2.0

this is where theme and font for gtk are written

Offline

Board footer

Powered by FluxBB