Improvement requests :  K-Meleon Forum
Use this forum to talk about a feature you're missing. Use the bug tracker to report it if necessary. 
Changing default
Posted by: Ken T.
Date: September 29, 2001 11:17PM

I just want to be able to change the default display font from Times New Roman to something else

Options: ReplyQuote
Re: Changing default
Posted by: Andrew
Date: September 30, 2001 01:50AM

Ken,

If you want to simply change the default font from Times New Roman to your default Sans-Serif font, Arial, do the following:

1. Open up your favorite text editor. Notepad will do.

2. Copy the following line into a new file:

user_pref("font.default", "sans-serif");

3. Save the file as:

user.js

to your *.slt directory located here:

Profiles\default\*.slt

This link will tell you where that directory is located for your OS:

http://kmeleon.sourceforge.net/docs/faq.php#favorites1

Now, the next time that K-Meleon starts, this preference is copied over into your prefs.js file, which is located in the same directory. Technically, you could add that line to prefs.js but by locating it in user.js, you don't have to worry about it getting hosed if the prefs.js file is overwritten. If you have done this properly, your default font should be your Sans-Serif font [CSS might override that in some cases - not sure].

If instead, you want to change your default Serif font from Times New Roman to say, Georgia, add the following line instead:

user_pref("font.name.serif.x-western", "Georgia");

I hope that helps.

Andrew

Options: ReplyQuote
Re: Changing default
Posted by: Andrew
Date: October 01, 2001 12:21PM

For those interested in changing this and other settings, see the following new Docs:

http://kmeleon.sourceforge.net/docs/custompref.php

http://kmeleon.sourceforge.net/docs/mozpref.php

Options: ReplyQuote


K-Meleon forum is powered by Phorum.