You are not logged in.

#1 2005-09-27 18:55:50

surfer_rosa
Member
From: Glasgow, UK
Registered: 2005-02-21
Posts: 43

Huge firefox UI fonts [SOLVED]

I've gone through quite alot of the posts on here about firefox alias / antialias fonts etc, but not many that deal with the actual fonts along the toolbar etc.

I was trying to find how to change them but nothing seemed to work. However, after a reboot the next day i was suddenly greeted with this:

hugefont4uy.th.png

I'm sure you'll agree its a totally mammoth font size.

Any ideas how to change this - i have no idea what i've done.

I tried creating a .gtk-2.0 file after this happened - no difference. I also change my /etc/fonts/local.conf - also no difference.

Any ideas?

Cheers!


EDIT: Solved - monitor sizes in xorg.conf were the wrong way around - should be

DisplaySize <Width> <Height>

Offline

#2 2005-09-27 19:29:15

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: Huge firefox UI fonts [SOLVED]

surfer_rosa wrote:

I tried creating a .gtk-2.0 file after this happened - no difference.

Try ~/.gtkrc-2.0 instead. Or there are some guis in the extra repo that will make one for you.


I am a gated community.

Offline

#3 2005-09-27 21:20:07

surfer_rosa
Member
From: Glasgow, UK
Registered: 2005-02-21
Posts: 43

Re: Huge firefox UI fonts [SOLVED]

stonecrest wrote:

Try ~/.gtkrc-2.0 instead. Or there are some guis in the extra repo that will make one for you.

That was what i tried. Dont know why i said .gtk-2.0 - sorry.

Could you give me an example of such a program? Dont think it'll work anyway but its worth a try.

Cheers.

Offline

#4 2005-09-27 21:29:46

SleepyDog
Member
Registered: 2004-10-15
Posts: 114

Re: Huge firefox UI fonts [SOLVED]

I doubt his other gtk apps have large fonts like that.

Try (re)moving your ~/.mozilla directory

Offline

#5 2005-09-27 22:01:06

surfer_rosa
Member
From: Glasgow, UK
Registered: 2005-02-21
Posts: 43

Re: Huge firefox UI fonts [SOLVED]

SleepyDog wrote:

I doubt his other gtk apps have large fonts like that.

Try (re)moving your ~/.mozilla directory

Fraid that didn't work - my theme disappeared and all my bookmarks etc but still huge text.

And gaim doesn't have the huge text abd thats gtk (i think)? Is firefox gtk or gtk-2?

Cheers

Offline

#6 2005-09-27 23:03:16

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Huge firefox UI fonts [SOLVED]

My guess would be that something you changed actually did work, but didn't actually get sourced until you rebooted the machine.  Yes, I realize that doesn't help you get things back the way they were, but just thought I'd throw that theory out there...perhaps retrace your steps?

Also, you could always just backup your bookmarks, uninstall Firefox, and then reinstall it...that should set things straight.

Offline

#7 2005-09-27 23:21:44

surfer_rosa
Member
From: Glasgow, UK
Registered: 2005-02-21
Posts: 43

Re: Huge firefox UI fonts [SOLVED]

elasticdog wrote:

My guess would be that something you changed actually did work, but didn't actually get sourced until you rebooted the machine.  Yes, I realize that doesn't help you get things back the way they were, but just thought I'd throw that theory out there...perhaps retrace your steps?

Also, you could always just backup your bookmarks, uninstall Firefox, and then reinstall it...that should set things straight.

Yeah i'd pretty much accepted thats how it happened. The thing is that i was wanting to change the fonts because i think the defaults are awful.

I'm going to have to remember what i changed now.

I think there was something in my xorg.conf (relating to the monitor viewing area) and something about 96dpi? Will look through my history.

Offline

#8 2005-09-27 23:29:25

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Re: Huge firefox UI fonts [SOLVED]

Have you tried clicking Edit>Preferences, then fonts and colors under the general tab and changing your font there?

Offline

#9 2005-09-27 23:52:44

surfer_rosa
Member
From: Glasgow, UK
Registered: 2005-02-21
Posts: 43

Re: Huge firefox UI fonts [SOLVED]

jftaylor21 wrote:

Have you tried clicking Edit>Preferences, then fonts and colors under the general tab and changing your font there?

Yeah - does nothing. I think they are just for webpages etc.

Cheers.

Offline

#10 2005-09-28 00:45:19

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Huge firefox UI fonts [SOLVED]

Have you changed your DPI settings in /etc/fonts/local.conf?

Offline

#11 2005-09-28 01:05:06

surfer_rosa
Member
From: Glasgow, UK
Registered: 2005-02-21
Posts: 43

Re: Huge firefox UI fonts [SOLVED]

iBertus wrote:

Have you changed your DPI settings in /etc/fonts/local.conf?

Actually, after i changed my local.conf file last time i downloaded a local.conf file example to change all the defaults back.

I see its got 96 for the dpi - what should it be?

I've managed to change the mammoth firefox ui fonts by tweaking my userChrome.css file to include:

* {
font-size: 5pt !important;
font-family: verdana, tahoma !important;
}

The 5pt text should have given away that my dpi was set waaay higher than it should be. Didn't seem to effect any other applications though.

Cheers.

Offline

#12 2005-09-28 02:30:21

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Huge firefox UI fonts [SOLVED]

Your DPI setting should depend on your monitor and the resolution that it's using. Measure your monitor and then divide your resolution for that dimension by the measured distance.

i.e. If the monitor is 12.1" wide and the X-res is 1024 then 1024/12.1 = 85 DPI.

Offline

#13 2005-09-28 06:20:33

paranoos
Member
From: thornhill.on.ca
Registered: 2004-07-22
Posts: 442

Re: Huge firefox UI fonts [SOLVED]

Firefox can set its own DPI for some reason. Thankfully, it has an option to use the System setting, which i presume is from local.conf. Perhaps this is where your dilemma lies.

Offline

#14 2005-09-28 16:12:46

surfer_rosa
Member
From: Glasgow, UK
Registered: 2005-02-21
Posts: 43

Re: Huge firefox UI fonts [SOLVED]

iBertus wrote:

Your DPI setting should depend on your monitor and the resolution that it's using. Measure your monitor and then divide your resolution for that dimension by the measured distance.

i.e. If the monitor is 12.1" wide and the X-res is 1024 then 1024/12.1 = 85 DPI.

Well i checked my xorg.conf for my screensize but it just didn't seem right. Checked the manual and it turns out these values were wrong. A quick restart of x later and i noticed that my menu bar along firefox was alot smaller and probably the 5pt that i specified in my userChrome.css.

There is a still some pretty large text though, so i'll calculate my dpi and change my /etc/fonts/local.conf

Cheers

hugefont4zw.th.png

Offline

#15 2005-09-28 16:23:08

surfer_rosa
Member
From: Glasgow, UK
Registered: 2005-02-21
Posts: 43

Re: Huge firefox UI fonts [SOLVED]

Didn't change anything :cry:

I calculated my width (1280 / 12.6 = 101.6) and my height (1024 / 9.45 = 108.37) and changed the values in /etc/fonts/local.conf.

I will try and locate the firefox dpi setting that paranoos suggested and see if its set to system or custom.

Cheers.

Offline

#16 2005-09-28 16:24:39

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Huge firefox UI fonts [SOLVED]

It looks to me like you changed a xft setting to replace/swap a font for another.  Can you post your xorg.conf font and module sections along with your /etc/fonts/local.conf (I hope you didn't change fonts.conf)

Offline

#17 2005-09-28 16:31:11

surfer_rosa
Member
From: Glasgow, UK
Registered: 2005-02-21
Posts: 43

Re: Huge firefox UI fonts [SOLVED]

Well changing display resolution from system to 96dpi gives me exactly what i'm wanting.

Just wondering where the 'system' setting is.

phrakture:

Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        ModulePath   "/usr/X11R6/lib/modules"

        FontPath   "/usr/X11R6/lib/X11/fonts/TTF"
        FontPath   "/usr/X11R6/lib/X11/fonts/100dpi"
        FontPath   "/usr/X11R6/lib/X11/fonts/CID"
        FontPath   "/usr/X11R6/lib/X11/fonts/Type1"
        FontPath   "/usr/X11R6/lib/X11/fonts/local"
        FontPath   "/usr/X11R6/lib/X11/fonts/75dpi"
        FontPath   "/usr/X11R6/lib/X11/fonts/misc"
EndSection
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts.conf file to configure system font access -->
<fontconfig>
        <match target="font">
                <edit name="antialias" mode="assign"><bool>true</bool></edit>

                <edit name="hinting" mode="assign"><bool>false</bool></edit>

        </match>
        <!--  Enable sub-pixel rendering  
        <match target="font">
                <test qual="all" name="rgba">
                        <const>unknown</const>
                </test>
                <edit name="rgba" mode="assign"><const>rgb</const></edit>
        </match> -->
        <match target="pattern">
                <edit name="dpi" mode="assign"><double>101</double></edit>
        </match>
        <!--  Dongs  -->

        <alias>
                <family>serif</family>
                <prefer>
                        <family>Bitstream Vera Serif</family>
                </prefer>
        </alias>
        <alias>
                <family>sans-serif</family>
                <prefer>
                        <family>Bitstream Vera Sans</family>
                </prefer>
        </alias>
        <alias>
                <family>monospace</family>
                <prefer>
                        <family>Bitstream Vera Sans Mono</family>
                </prefer>
        </alias>
</fontconfig>

Cheers for all your help guys big_smile

Offline

#18 2005-09-28 16:37:42

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Huge firefox UI fonts [SOLVED]

You have your font dpi set to 101 - it should probably match your display dpi (96).

Other than that, not really sure.

Offline

#19 2005-09-28 17:08:30

surfer_rosa
Member
From: Glasgow, UK
Registered: 2005-02-21
Posts: 43

Re: Huge firefox UI fonts [SOLVED]

phrakture wrote:

You have your font dpi set to 101 - it should probably match your display dpi (96).

Other than that, not really sure.

Yeah only changed that once i'd calculated my own dpi. If i change it back to 96 and change firefox to 'system' it gives me the blocky text again. Very weird but i can live with firefox having its own dpi setting.

Cheers for everyones help.

Offline

#20 2005-09-28 18:21:16

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Huge firefox UI fonts [SOLVED]

Does your monitor section in xorg.conf have size specifications? If so, these should be made to match what is in your monitor manual, as X uses these to calculate DPI values. For example, mine is 85 DPI and thanks to having the correct values in xorg.conf, my X DPI correct (it defaulted to 96 DPI before). Now everything looks great.

Offline

#21 2005-09-28 21:05:55

surfer_rosa
Member
From: Glasgow, UK
Registered: 2005-02-21
Posts: 43

Re: Huge firefox UI fonts [SOLVED]

iBertus wrote:

Does your monitor section in xorg.conf have size specifications? If so, these should be made to match what is in your monitor manual, as X uses these to calculate DPI values. For example, mine is 85 DPI and thanks to having the correct values in xorg.conf, my X DPI correct (it defaulted to 96 DPI before). Now everything looks great.

Excellent diagnosis!

Checked the xorg.conf again and the display sizes were correct, but the wrong way around  :oops:   lol

Have to say that one of the tutorials i read about changing the firefox fonts told me to put that setting in and that way around.

Changed the error and the firefox setting back to 'system' and all is now good.

Cheers!

Offline

Board footer

Powered by FluxBB