This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Controlling fonts of gnome applications under KDE

Tags: None
(comma "," separated)
jonrysh
Registered Member
Posts
23
Karma
0
OS
How can the font size of gnome applications (in particular evolution) be
controlled when they are being run under KDE? A method for carrying
over the font (and theme) setup from KDE to gnome would be best, but an
independent parallel method for font control of gnome applications would
also be OK.

Running Fedora-15, versions of KDE and gnome are: KDE-4.6.4, gnome-3.0.1 .
User avatar
google01103
Manager
Posts
6668
Karma
25
in systemsettings there should be a "gtk styles and fonts" module, the package if not installed should be kcd-gtk

Image


OpenSuse Leap 42.1 x64, Plasma 5.x

jonrysh
Registered Member
Posts
23
Karma
0
OS
This window appears on my system as:
System Services -> Application Appearance -> GTK+ Appearance .

Right now fonts are set to "Use my KDE fonts in GTK+ Applications"

If I set it to "Use another font" (to be specified by me) nothing happens to running applications, and changing the requested font has no effect. I can't find anything in the repos or the web about kcd-gtk. Do you mean kcm-gtk, which is installed?

We appear to be running different versions of KDE, or at least of this module. Help for "System Settings" identifies it as:

System Settings
Version 1.0
Using KDE Development Platform 4.6.5 (4.6.5)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Are the environment variables GTK_RC_FILES and GTK2_RC_FILES set? If so, what are their values?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
jonrysh
Registered Member
Posts
23
Karma
0
OS
bcooksley wrote:Are the environment variables GTK_RC_FILES and GTK2_RC_FILES set? If so, what are their values?

Yes. Values are:
$ echo $GTK_RC_FILES
/etc/gtk/gtkrc:/home/jonrysh/.gtkrc::/home/jonrysh/.kde/share/config/gtkrc
$ echo $GTK2_RC_FILES
/etc/gtk-2.0/gtkrc:/home/jonrysh/.gtkrc-2.0:/home/jonrysh/.gtkrc-2.0-kde4:/home/jonrysh/.kde/share/config/gtkrc-2.0
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Hmm... they seem to be correct.

What is the content of /home/jonrysh/.gtkrc-2.0-kde4?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
jonrysh
Registered Member
Posts
23
Karma
0
OS
bcooksley wrote:Hmm... they seem to be correct.

What is the content of /home/jonrysh/.gtkrc-2.0-kde4?

# This file was written by KDE
# You can edit it in the KDE control center, under "GTK Styles and Fonts"

include "/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc"
include "/etc/gtk-2.0/gtkrc"

style "user-font"
{
font_name="Cantarell"
}
widget_class "*" style "user-font"

gtk-theme-name="oxygen-gtk"
gtk-font-name="Cantarell 14"
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Assuming that those are the correct details, it seems that GNOME applications are ignoring those preferences. You'll have to talk to them unfortunately.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
maese.oli
Registered Member
Posts
1
Karma
0
OS
Hi,

The easy solution, I found, is to create a .gtkrc-2.0 in your home profile
Code: Select all
/home/user/.gtkrc-2.0
, with for example:

Code: Select all
gtk-font-name="Cantarell Medium 10"


Hope it helps you.

Eugenio


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]