Improvement requests :  K-Meleon Web Browser Forum
Use this forum to talk about a feature you're missing. 
Forcing *my* font size on pages
Posted by: OgO
Date: March 01, 2002 01:55AM

I would like to be able to force pages to use my font size - as I can't read the ~10pt font size that many sites (including this one) force on people. I don't overly care which *font* is used - the document can specify it's own if it must, but I want control of the font *size*.

In my preferences, under:
Edit -> Preferences -> configs -> prefs

I have the following line (among others smiling smiley

user_pref("browser.display.use_document_fonts", 0);


This line is supposed to force the program to use the font that I specify - is that in:

user_pref("font.size.variable.x-western", 24);

or is that something else?

Anyway, this use_document_fonts doesn't seem to do anything. The menu to the left, for instance, which says:



Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs


is still in around 10 point font. If I look at it in IE with my fonts forced then it's much bigger.

How can I fix this?

Regards

OgO

Options: ReplyQuote
Re: Forcing *my* font size on pages
Posted by: Andrew
Date: March 01, 2002 03:09AM

Ogo,

Check it on a site like Yahoo! and let us know if it works. I think it will work there but I don't think it will override a stylesheet declaration. That's a Mozilla bug and I'm not sure if it will be fixed for the next release.

Andrew

Options: ReplyQuote
Re: Forcing *my* font size on pages
Posted by: altima
Date: March 03, 2002 04:33AM

Hello,

I do not have the user_pref("browser.display.use_document_fonts", 0); in my pref.js
All I have is a macros/menu that work pretty well on most site including Yahoo!

Unfortunately, like Andrew mentioned, some site specify font size in stylesheet which prevent browsers from changing text size. Hopefully there will be a nice fix for it (although you can always use the "Internet Option-->Accessibility" in IE to override all site formatting and/or selecting your own stylesheet).

As for this site, the only text that consistently changes size with the macros/menu are the "How often do you use K-Meleon?" poll and the forum index. The W3 HTML Validator (http://validator.w3.org/) was unable to validate this site for some reason. Althought the tpe="text/css" and no DOCTYPE declaration might have something to do with it winking smiley


altima


Here is the macros/menu, feel free to modify it to suit your own need.


# Macros for Changing Text Size / Goes in Macros.cfg

font_20 {
menu = Largest
togglepref(INT, font.size.variable.x-western, 20)
}

font_18 {
menu = Larger
togglepref(INT, font.size.variable.x-western, 18)
}

font_16 {
menu =Medium
togglepref(INT, font.size.variable.x-western, 16)
}

font_14 {
menu = Smaller
togglepref(INT, font.size.variable.x-western, 14)
}

font_12 {
menu = Smallest
togglepref(INT, font.size.variable.x-western, 12)
}



# Pop up definition for Text Size / Goes in Menus.cfg at top

&Text Size {
macros(font_20)
macros(font_18)
macros(font_16)
macros(font_14)
macros(font_12)
}


# Pop up menu / Goes in Menus.cfg
# Put under &View{} to make it look similar to Internet Explorer

-
:&Text Size
-

Options: ReplyQuote
Re: Forcing *my* font size on pages
Posted by: OgO
Date: March 11, 2002 02:01AM

I have one of those little buttons in my toolbar, although I don't use it much since I leave the text nice and big for the most part winking smiley

Thanks for the info about why you can't reliably specify font settings, hopefully this will be addressed in mozilla soon smiling smiley

Options: ReplyQuote


K-Meleon forum is powered by Phorum.