How to change fontsize in the Help system ?

Lauri Watts lauri at kde.org
Thu Sep 5 16:47:26 BST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark Constable wrote:


> > I was kinda hoping someone would know just the right XML config file
> to edit so I could change one number from 12 to 24.

KHelpCenter uses your default KHTML settings.  For 3.1b configure the 
fonts in KControl -> Web Browser -> Fonts.  You can set a minimum 
global font size here.  For other versions, it's in various places, 
most commonly it used to be in an "Appearance" tab under Konqueror's 
configuration, most easily reached by "Settings -> Configure Konqueror" 
while running Konq itself.  For many versions of KDE, you can also set 
a per encoding font choice, and if this is the case, make sure the 

If you have really special needs (low contrast colors, large font sizes, 
anything else) you can configure a custom stylesheet in KControl -> Web 
Browser -> Stylesheets.  You can choose a hand written one 
("user-defined stylesheet") or you can use the Customize tab in this 
module to create one with a GUI.

All these configure all HTML rendering KDE wide, if you really need to 
you can just change KHelpCenter - I can't imagine why, because, 
KHelpCenter doesn't set any fonts at all, using the system defaults.  
The file to edit is 
$KDEDIR/share/doc/HTML/<yourlang>/common/kde-localized.css.template, 
which is a standard CSS file, and copy it to 
$KDEDIR/share/doc/HTML/<yourlang>/common/kde-localized.css .  You can 
add anything you like here (be very careful with syntax, CSS by design 
stops processing all further instructions if you make an error):

body {  color: black;
        font-size: 10pt;        }

kde-localized.css is processed last, if it exists, and anything set in 
this file "wins".  Since the kde-localized.css file is not installed 
directly by KDE, only the template, it will survive upgrades and new 
installations, but if you choose this route, do keep a copy.

And finally, if the issue is you're using very large screen dimensions, 
and that is making the fonts very small, try running X with higher DPI: 
startx -- -dpi 120 & ought to do the trick (you'll probably find in 
fact, you have to adjust all your font sizes down not up, after 
this.)

Regards,
- -- 
Lauri Watts
KDE Documentation: http://i18n.kde.org/doc/
KDE on FreeBSD: http://freebsd.kde.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9d3yV/gUyA7PWnacRAgHuAJwPHeO/TnW09XR5g1MHr4QMc1fWeACfSkLy
55UfKy35ToS3zqOeTHxlzYI=
=8E0X
-----END PGP SIGNATURE-----
___________________________________________________
This message is from the kde mailing list.
Account management:  http://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list