I am investigating a font configuration problem and I would like to test changes I make in /etc/fonts/conf.d and /etc/fonts/conf.avail without closing my session.
Is it possible ? Apparently running fc-cache is not enough.
thanks @user.dz but it doesn't do the trick. fontconfig is not updated by restarting plasmashell
– ChrisAgaNov 04 '20 at 14:43
1
Thanks @xiota I initially tried sudo fc-cache -f-r doesn't work either. Yes I closed and reopened my program (Firefox). By the way, changes in files stored in /etc/fonts/conf.avail really do something (which I can test by closing and reopening my session) since /etc/fonts/conf.d contains links to files from /etc/fonts/conf.avail
– ChrisAgaNov 04 '20 at 15:57
@ChrisAga That's strange. Don't know why Firefox isn't picking up the change. What files are you editing and what changes are you making? Is there any reason you're not editing files in ~/.config/fontconfig/conf.d ?
– xiotaNov 04 '20 at 16:00
@xiota Everithing is explained here https://askubuntu.com/questions/1289600/firefox-hint-issue-when-editing-text-in-roboto-font-how-to-fix-it I was working on this issue.
– ChrisAgaNov 04 '20 at 16:15
Maybe some options are only picked up at login? Do you have this problem with other options, like font families?
– xiotaNov 04 '20 at 16:22
Try something like, <alias binding="same"><family>Example</family><accept><family>monospace</family></accept></alias> Should be pretty obvious if the config works.
– xiotaNov 04 '20 at 16:42
sudo fc-cache -f
-r
doesn't work either. Yes I closed and reopened my program (Firefox). By the way, changes in files stored in/etc/fonts/conf.avail
really do something (which I can test by closing and reopening my session) since/etc/fonts/conf.d
contains links to files from/etc/fonts/conf.avail
– ChrisAga Nov 04 '20 at 15:57~/.config/fontconfig/conf.d
? – xiota Nov 04 '20 at 16:00<alias binding="same"><family>Example</family><accept><family>monospace</family></accept></alias>
Should be pretty obvious if the config works. – xiota Nov 04 '20 at 16:42