Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: teal on 03 February 2022, 04:20:27

Title: Edit fonts.conf without breaking lxqt config
Post by: teal on 03 February 2022, 04:20:27
I want to edit my fonts.conf (located at $HOME/.config/fontconfig/fonts.conf) to add fallback fonts, because there are missing characters from different languages. I am following the guide from https://wiki.archlinux.org/title/fonts#Fallback_font_order. At the very top of the file, it has a comment that says
Code: [Select]
<!-- created by lxqt-config-appearance (DO NOT EDIT!) -->
. Will adding the fallback font order to this config file break anything? Here is the full file: https://pastebin.com/aS7X5xA9

info:
distro: artix lxqt s6
wm: openbox
Title: Re: Edit fonts.conf without breaking lxqt config
Post by: strajder on 03 February 2022, 07:36:52
Creating your own (or editing the existing) fonts.conf generally speaking won't break anything, but, as stated in that comment, using the LXQt Appearance Configuration application will just overwrite that file.
Title: Re: Edit fonts.conf without breaking lxqt config
Post by: nous on 03 February 2022, 15:55:30
Creating your own (or editing the existing) fonts.conf generally speaking won't break anything, but, as stated in that comment, using the LXQt Appearance Configuration application will just overwrite that file.
A (not-so-elegant) workaround to that would be either change fonts.conf's permissions to read-only (444) or changing its ownership to another user (e.g. root). Thus, LXQt won't overwrite it, but I'm not sure how hard would it complain about it.
Title: Re: Edit fonts.conf without breaking lxqt config
Post by: strajder on 03 February 2022, 16:05:05
It just silently fails (GUI-wise). Next time the Appearance Configuration is started, it just shows the affected values with settings from the file.