LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   font settings do not applied globally (for every apps) (https://www.linuxquestions.org/questions/linux-desktop-74/font-settings-do-not-applied-globally-for-every-apps-4175581408/)

ronracer 06-03-2016 11:30 PM

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

Mitt Green 06-04-2016 04:05 AM

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.

ondoho 06-05-2016 04:45 AM

Quote:

Originally Posted by ronracer (Post 5555693)
some apps use other font (Droid Serif) instead of user defined.

which apps?
that is the key to solving your problem.

Mitt Green 06-05-2016 05:11 AM

Quote:

Originally Posted by ondoho (Post 5556181)
which apps?
that is the key to solving your problem.

Icedove, apparently, looking at the screenshot name.

ronracer 06-06-2016 11:26 AM

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).

ronracer 06-06-2016 11:37 AM

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

ondoho 06-09-2016 12:44 PM

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.


All times are GMT -5. The time now is 04:40 PM.