Mozilla and font sizes
Hey guys,
I am having a little trouble changing the font size of the menus in Mozilla. I have changed the font sizes in the KDE control panel and in my Mozilla settings but they menus in Mozilla are still using a VERY small font that is almost impossible to read. I have installed all of my windows fonts and seem to have everything working well except for this. I am not the most experienced Linux guru so please give details on how to fix this if anyone is nice enough to help. I would greatly appreciate it. Edit: I just noticed that it is not just mozilla that has this problem. The mandrake utilities such as rpmd also are using a very small font even thought I have them set to larger ones through the KDE control panel. Is there somewhere else that I must set them? |
Just out of curiosity, what is your resolution? That could make your fonts very small. Also maybe the font face you are using is a small font in general?
|
Try this. Create a file .gtkrc-2.0 in your home directory (don't forget the 'dot') containing a line such as
gtk-font-name = "Arial 14" If you don't have the MS Truetype fonts installed you might have to choose something different, like "Helvetica 14". When you restart Moz you should see the new font in the menus. The problem is that non-KDE apps will take no notice of settings in the KDE control panel :( |
Thanks for the suggestion. I will boot into Linux and give that a try right now. I'll also let you know what resolution I am running at.
|
I am running at 1152x984 or something like that. The font is so small and crappy looking I can't read it. I am about to try the suggestion that was given. If I didn't mention it before, I did mess with the font settings in mozilla but this did not seem to have any effect on the Mozilla GUI.
|
OK, I created a file in /home/marc/ called gtkrc-2.0 and added the line gtk-font-name = "Arial 14". I restarted X and the problem persisted so I tried changing Arial to Helvetica, restarted X and the problem persisted. Any other suggestions?
Tutwabee, what do you mean by font face? Where can I change this? |
if you do some reading at the Moz website, you'll find documentation on how to change the font sizes using userChrome.css and userContent.css cascading style sheets (.css) in the user's home/.mozilla.
|
Quote:
What point size does it seem like the font is at in your menus and in Mozilla? The way you can test this is open up OpenOffice and type in different sizes and see which one looks the closest. Also, this thread may help you: http://www.linuxquestions.org/questi...hreadid=158900 |
Hi TheGr81
In your reply to my earlier post you said you used a file 'gtkrc-2.0'. Does this mean you left out the leading 'dot' in the filename? The name you need is .gtkrc-2.0 The leading '.' is a Unix convention for configuration files. It stops them being listed by the 'ls' command, since most people want to ignore them most of the time. P.S. You don't need to restart X. Just the app. |
crap, I did forget the leading . :( I will try it the right way next time I am in Linux. Thanks a lot.
|
OK, I tried what maroonbaboon suggested with no effect whatsoever. I already had a file called .gtkrc-2.0 and I also had a file called .gtkrc which both looked like this...
# -- THEME AUTO-WRITTEN DO NOT EDIT include "/usr/share/themes/Galaxy/gtk/gtkrc" # -- THEME AUTO-WRITTEN DO NOT EDIT I added the line gtk-font-name = "Arial 14" to both files so that they looked like this... # -- THEME AUTO-WRITTEN DO NOT EDIT include "/usr/share/themes/Galaxy/gtk/gtkrc" gtk-font-name = "Arial 14" # -- THEME AUTO-WRITTEN DO NOT EDIT This had no effect so I figured I would try using the Helveticaca font just in case it was a problem with the Microsoft fonts I had installed so I made both files look like this... # -- THEME AUTO-WRITTEN DO NOT EDIT include "/usr/share/themes/Galaxy/gtk/gtkrc" gtk-font-name = "Helvetica 14" # -- THEME AUTO-WRITTEN DO NOT EDIT This also had no effect and I tried restarting X after each change just to be safe. Is there anything else I should try? I would really like to get this working and greatly appreciate the help I have been given and hopefully will get. |
I get exactly the same problem with you ! Let me know the solution if you get it !
Good luck ! |
I don't know why this is not working for you, unless it is getting overridden somewhere else. You could try commenting out the line starting 'include...' (just put a # at the beginning). If this line is generating an error the app may give up and not get to the font line.
You can also try some other font names. I am not quite sure how the name is mapped to a particular font. But I tried with a nonsense name and it still worked, using the given size parameter with what looked like a Times Roman font. |
I tried commenting out the include line and it still had no effect. Out of curiosity, I loaded up Gnome to see if they problem existed there as well. In Gnome, if I change the font settings using Gnome's font selector, everything comes out looking great so this is definitely because of something KDE is doing. I would prefer to use KDE over Gnome so if anyone has any other suggestions I would appreciate it.
|
Suggestions: delete all KDE configuration files in your home directory. This will clear all of your normal user settings. Hopefully the default is large text.
|
All times are GMT -5. The time now is 09:52 PM. |