You are not logged in.
Pages: 1
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:
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
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
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
I doubt his other gtk apps have large fonts like that.
Try (re)moving your ~/.mozilla directory
Offline
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
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
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
Have you tried clicking Edit>Preferences, then fonts and colors under the general tab and changing your font there?
Offline
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
Have you changed your DPI settings in /etc/fonts/local.conf?
Offline
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
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
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
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
Offline
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
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
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
Offline
You have your font dpi set to 101 - it should probably match your display dpi (96).
Other than that, not really sure.
Offline
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
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
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:
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
Pages: 1