LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 06-03-2016, 11:30 PM   #1
ronracer
LQ Newbie
 
Registered: May 2016
Posts: 6

Rep: Reputation: Disabled
font settings do not applied globally (for every apps)


Hi dear Linux fans!
system settings of fonts' type do not affect in some application (golden dict, transmission, icedove, for instance).
Using KDE SystemSettings all parametres of fonts was set up both for KDE and GTK apps but some apps use other font (Droid Serif) instead of user defined.

Old kde's configuration files was removed after install Debian and then all settings were setup again; old configuration files of applications were kept but I hesitate that above mentioned applications store font settings in their configuration folder (.goldendict, for instance).
I solved this problem in case of Icedove by editing chrome.css. But it is a particular solution.

I try understand in general why some apps ignore sytem settings of fonts?
My questions is how this problem could be fixed?
Thank you in advance.

P.S. Moreover cyrillic letters of Droid Serif rendered ugly and this is a second reason I try to use other fonts. Other fonts rendered ok (for me).
KDE 4.14.2, Jessie.
http://s33.postimg.org/wspoxj54f/icedove_rus.png
 
Old 06-04-2016, 04:05 AM   #2
Mitt Green
Member
 
Registered: May 2014
Location: Europe
Posts: 199

Rep: Reputation: 116Reputation: 116
Hey,
You can create .gtkrc-2.0 in your home (assuming the problems are with GTK+2 apps) and put the following:
Code:
gtk-font-name="[YOURFONTHERE, e.g. Droid Sans 11]"
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintslight"
gtk-xft-rgba="rgb"
or install something like lxappearance and do this with GUI.

For me this hints fonts fully (probably a bug), so I also created .Xdefaults in my home and put the following there:
Code:
Xft.autohint: 0
Xft.antialias: 1
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.rgba: rgb
If the first solution works, you can go with it alone. Also don't forget that many fonts don't have cyrillic letters. And I would yet recommend using English only.
 
Old 06-05-2016, 04:45 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by ronracer View Post
some apps use other font (Droid Serif) instead of user defined.
which apps?
that is the key to solving your problem.
 
Old 06-05-2016, 05:11 AM   #4
Mitt Green
Member
 
Registered: May 2014
Location: Europe
Posts: 199

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by ondoho View Post
which apps?
that is the key to solving your problem.
Icedove, apparently, looking at the screenshot name.
 
Old 06-06-2016, 11:26 AM   #5
ronracer
LQ Newbie
 
Registered: May 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thank you Mitt Green for your reply.
There are .gtkrc-2.0 and .gtkrc-2.0-kde4 (in home folder) contain follow:
Code:
# File created by KDE Gtk Config
# Configs for GTK2 programs 

include "/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc"
style "user-font" 
{
	font_name="DejaVu Serif Book"
}
widget_class "*" style "user-font"
gtk-font-name="DejaVu Serif Book 12"
gtk-theme-name="oxygen-gtk"
gtk-icon-theme-name="oxygen"
gtk-fallback-icon-theme="oxygen"
gtk-toolbar-style=GTK_TOOLBAR_ICONS
gtk-menu-images=1
gtk-button-images=1
I replace it content with those you suggested. But it does not affect.

As I understood your 2nd suggestion (.Xdefaults) concerns font rendering.
My first task is apply my settings of type and size of font to all apps and 2nd — fix rendering of ru_Droid (other fonts rendered ok).
 
Old 06-06-2016, 11:37 AM   #6
ronracer
LQ Newbie
 
Registered: May 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thank you ondoho for your reply.
problem concerns main area of window of transmission-QT (v. 2.83), goldendict. Menus, window titles use user defined font settings.

http://s33.postimg.org/56pls7b7z/tr_QT.png

And problem concerns dialoge windows, menus, toolbars of libreoffice
http://s33.postimg.org/lwqf3xg27/libreoffice_font.png
 
Old 06-09-2016, 12:44 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i don't understand.
all your screenshots use a serif font, i assume it's droid serif.
your ~/.gtkrc-2.0 reads, correctly, that your system is using "DejaVu Serif Book 12".

i fail to see the problem.

if you are trying to set another font through the gui, and it does not affect, well maybe you are using the wrong utility?

you can also try to simply
Code:
rm ~/.gtkrc-2.0*
and set everything again with whatever gui you are using.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba settings not being applied to one user havock Linux - Software 1 03-02-2012 05:34 PM
How can I get apps (eg, NM and SCIM) to run globally kwanseum Ubuntu 4 11-19-2009 03:21 PM
NVidia settings not applied shermanramni Fedora 3 05-20-2007 06:36 PM
turning off menu icons globally for all KDE apps bpcw001 Linux - Software 0 06-14-2005 08:31 PM
Font settings for non-KDE apps Mikirivo Linux - General 0 08-05-2002 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration