You are not logged in.

#1 2007-11-09 20:17:35

atordo
Member
Registered: 2007-04-21
Posts: 147

GTK font size

I use KDE 3.5.8 and after upgrading to xorg 7.3 all my video modes and font sizes went nuts. That's solved now, but GTK apps still display a tiny font.

If I recall correctly, in previous KDE versions, kcontrol had an option to apply font preferences to Qt and GTK apps, but I can't find it now. I fixed the Qt ones with "qtconfig", does something similar exist for GTK? How can I increase size font beyond "microscopic almost invisible"?

Offline

#2 2007-11-09 21:22:38

bmmdvm
Member
From: Tennessee
Registered: 2007-10-27
Posts: 5

Re: GTK font size

Fire up kcontrol, the KDE settings application. Look for Appearance & Themes. See if you have a menu item under Appearance & Themes called GTK Styles and Fonts. If you don't you need to install the package gtk-qt-engine. Log out and back in to restart KDE. There should be a menu item under Appearance & Themes called GTK Styles and Fonts. That is where you set fonts for GTK apps.

Offline

#3 2007-11-10 18:30:24

atordo
Member
Registered: 2007-04-21
Posts: 147

Re: GTK font size

Thanks for the tip, but although gtk-qt-engine is installed the "GTK Styles and Fonts" menu doesn't appear. May be it's a KDE issue, because I remember such option in previous versions.

Offline

#4 2007-11-10 20:30:35

atordo
Member
Registered: 2007-04-21
Posts: 147

Re: GTK font size

Just executed kcontrol as another user and the option is there, so it must be something in my .kde files, I'll check them.

Offline

#5 2007-11-11 10:16:03

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

Re: GTK font size

All you need to do is create a couple text files. a .gtkrc and a .gtkrc-2.0 file under /home/username to manipulate the font and size.

This is the contents of my .gtkrc file...

style "tooltips"
    {
        bg[NORMAL] = "#ffffcc"
        fg[NORMAL] = "#000000"
    }

    widget "gtk-tooltips*"        style "tooltips"

style "user-font"
{
fontset="-*-bitstream vera sans-medium-r-normal-*-16-*-*-*-*-*-iso8859-1"
}

widget_class "*" style "user-font"



This is the contents of my .gtkrc-2.0 file...

include "/usr/share/themes/QtCurve/gtk-2.0/gtkrc"

style "user-font"
{
    font_name="Bitstream Vera Sans 12"
}
widget_class "*" style "user-font"

gtk-theme-name="QtCurve"
gtk-font-name="Bitstream Vera Sans 12"


-- archlinux 是一个极好的 linux

Offline

#6 2007-11-12 00:26:08

atordo
Member
Registered: 2007-04-21
Posts: 147

Re: GTK font size

Thanks for the answer. I have both files (generated by KDE according to the comments at the top). I'll tweak with them and see.

The "GTK Styles and Fonts" option still doesn't show up in kcontrol, but as long as I can change the settings otherwise is ok for me.

Offline

Board footer

Powered by FluxBB