You are not logged in.
I had already configured font rendering but recently the system was totally upgraded and something went wrong. As you can see on the screenshot, font in dwm status line, terminal emulator and chromium page itself looks good but gui applications such thunar, nautilus or chromium interface have thin fonts. There were a lot of confirmations during upgrade a few days ago. Such like "Do you want to replace {package} with {package}proto in extra repository?". I accepted all of these suggestions but if I am not mistaken there was no package containing "font" in the title. You have already seen my fontconfig, so in addition, here is my ~/.Xresources file:
Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
Xft.autohint: 1This file is merged when X starts. I am not sure, but I remember that I had such thin fonts until I comment hintstyle out and set autohint to true. However, now it does no effect so I disable it.
Last edited by damage (2018-02-22 17:33:59)
Offline
https://wiki.archlinux.org/index.php/Fo … figuration
Edit: the implication is that you're editing the wrong file (to affect those other programs)
Last edited by seth (2018-02-22 15:17:27)
Online
Unfortunately, I am editing the right file: ~/.config/fontconfig/fonts.conf. Sorry, I should have added this path to the first post. I am sure since some options like anti-aliasing as well as dpi work well. And it did work before upgrade.
Edit: I have just realized for all these applications (terminal emulator, dwm status bar, ...) I have set font explicitly. For some reason my default font is not used by thunar anymore.
Last edited by damage (2018-02-22 15:45:30)
Offline
...font in dwm status line, terminal emulator and chromium page itself looks good but gui applications such thunar, nautilus or chromium interface have thin fonts...
What those applications have in common is that they are all based on GTK. While I haven't ever encountered any issues in this direction myself, this seems to suggest that there might be problems and also points you to possible solutions (although the content is marked as "disputed").
Offline
damage wrote:...font in dwm status line, terminal emulator and chromium page itself looks good but gui applications such thunar, nautilus or chromium interface have thin fonts...
What those applications have in common is that they are all based on GTK. While I haven't ever encountered any issues in this direction myself, this seems to suggest that there might be problems and also points you to possible solutions (although the content is marked as "disputed").
The problem is that thunar (as well as other gtk apps) uses other font than the default one. I have set different font called "Noto" and see no differences while dwm uses proper monospace font: Ubuntu, Noto. It seems that match..edit is deprecated, so I have replaced these with alias option.
<alias>
<family>serif</family>
<prefer><family>Ubuntu</family></prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer><family>Ubuntu</family></prefer>
</alias>
<alias>
<family>sans</family>
<prefer><family>Ubuntu</family></prefer>
</alias>
<alias>
<family>monospace</family>
<prefer><family>Ubuntu Mono</family></prefer>
</alias>fc-match output
~> fc-match serif
Ubuntu-R.ttf: "Ubuntu" "Regular"
~> fc-match sans-serif
Ubuntu-R.ttf: "Ubuntu" "Regular"
~> fc-match sans
Ubuntu-R.ttf: "Ubuntu" "Regular"
~> fc-match monospace
UbuntuMono-R.ttf: "Ubuntu Mono" "Regular"Offline
Well, I had to set gtk default font explicitly. I do not know why it worked before without it. So, if anyone want to change default font for gtk2+, edit (create if not exist) these 2 files:
# ~/.config/gtk-3.0/settings.ini
gtk-font-name=Ubuntu 12# ~/.gtkrc-2.0
gtk-font-name="Ubuntu 12"Last edited by damage (2018-02-22 17:35:37)
Offline