General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Override fonts
Posted by: amb141
Date: January 18, 2003 11:54PM

I'm posting this here instead of the "suggest improvements" forum since, for all I know, I'm just too dull-witted to find this feature. In IE, Mozilla, and Phoenix I have the option to override webpages' fonts (and colors, too) with a preferred font. I like to use frutiger linotype font (instead of the page designers' choice of font) because I find it easiest to read on my 12" screen. But I don't find this feature to be available in K-Meleon. Am I just missing something - or is it not there.

alan

Options: ReplyQuote
Re: Override fonts
Posted by: Robert
Date: January 19, 2003 03:15PM

It's not in preferences-dialog, right. But you can define this behavior directly in the file prefs.js, see:
http://kmeleon.freewebsites.com/kmeleon-manual/configs.html#CONFIG-PREFS

user_pref("browser.display.use_document_fonts", 0);
// 0 = never, 1 = quick, 2 = always

user_pref("browser.display.use_document_colors", false);
user_pref("browser.display.use_system_colors", false);
user_pref("browser.display.foreground_color", "#000000"); //black
user_pref("browser.display.background_color", "#ffffff"); //white
user_pref("font.default", "sans-serif");
user_pref("font.minimum-size.x-western", 14);
user_pref("font.name.sans-serif.x-western", "Verdana");
user_pref("font.name.serif.x-western", "Georgia");
user_pref("font.size.fixed.x-western", 17);
user_pref("font.size.variable.x-western", 17);

Options: ReplyQuote
Re: Override fonts
Posted by: amb141
Date: January 19, 2003 08:58PM

Robert

Thank you very much. And I assume that I can tailor these lines to my preferences (to use frutiger linotype for my sans-serif font,etc.) by simply importing these lines from my prefs.js file in Phoenix. At least, that's what I'm gonna try. Otherwise, I'll just alter the lines you provided to select my preferences.

alan

Options: ReplyQuote
Re: Override fonts
Posted by: amb141
Date: January 19, 2003 09:05PM

Robert

Works like a charm! Created a user.js file with the Phoenix lines imported, dropped it into my K-Meleon Profile folder and BINGO.

Thanks again.

alan

Options: ReplyQuote


K-Meleon forum is powered by Phorum.