! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Unable to set default monospace font (sans, serif too)
Status:
RESOLVED: FIXED
Product:
Xfce4-settings
Component:
Appearance Settings

Comments

Description Yan Pas 2016-03-15 12:46:20 CET
It is only possible to set default monospace font via fonts.conf file. The same may be applied for default sans and default serif fonts, but they are used rare.
Comment 1 Igor editbugs 2017-02-15 14:23:06 CET
Created attachment 6997 
Add Default Monospace Font chooser to Appearance dialog
Comment 3 Yan Pas 2017-02-15 18:45:14 CET
Thanks a lot!
Comment 4 Igor editbugs 2017-02-15 18:47:12 CET
The next step is to teach apps (e.g. xfce4-terminal) respect this setting :)
Comment 5 Yan Pas 2017-02-15 19:10:26 CET
I thought this patch edits fontconfig file. Every Linux app already respects this file. E. G. selecting monospace font in mousepad results in font specified in fonts.conf
Comment 6 Igor editbugs 2017-02-15 19:13:52 CET
No, the patch stores the monospace font setting in xsettings database, similarly to the other font. I know that there're also font settings in dconf database which are used by gnome but xfce doesn't seem to be using that ones.

I will need to look further into fontconfig usage as you suggested.
Comment 7 Igor editbugs 2017-02-15 19:37:38 CET
As far as I can tell, mousepad has default font hardcoded to "Monospace"; I wasn't able to find any read from any storage when selecting "Use default font".
In addition to what I've already said about gnome, I doubt there's a standard non-distro-specific way of specifying default font.
Comment 8 Yan Pas 2017-02-15 20:11:19 CET
Xfce would benefit if it would have stored font settings in dconf too. Most of linux apps respect it. E. G. I've reported bug to chrome about font AA (https://bugs.chromium.org/p/chromium/issues/detail?id=590831). It seems to me that despite fonst.conf it also reads dconf (cause there are no problems in gnome).

On the other hand Serif fonts settings are applied to every GTK app

Bug #12498

Reported by:
Yan Pas
Reported on: 2016-03-15
Last modified on: 2017-02-15

People

CC List:
3 users

Version

Version:
unspecified

Attachments

Additional information