You are not logged in.
After the debacle of infinality being incompatible with harfbuzz. I migrated to the normal fontconfig and followed these steps, and made it look as it was before as much as possible, All issues were fixed except for one.
The GNOME interface and GTK+ apps can't use the cantarell font anymore. Any attempt to set it as the GNOME interface font (via gnome-tweak-tool or dconf) will fail, instead it simply uses the 'Deja Vu' fonts instead.
The problem started once fontconfig was installed and did not exist when fontconfig-infinality was installed before. 'cantarell-fonts' is already installed. The problem persists even if 'otf-cantarell-ib' (the infinality font') is installed.
LibreOffice can use the cantarell font, but GTK+ apps like gedit and geany can't.
Screenshot.
The interface font shown in this screenshot is DejaVu, not cantarell, even though it is set by tweak tool.
Last edited by Abogical (2017-01-11 17:53:20)
Offline
If anyone has the same issue, please reply and confirm that I'm not alone.
Last edited by Abogical (2017-01-10 23:39:10)
Offline
Maybe rely on fontconfig to accurately set your fonts instead of Tweak Tool (whatever that is)...
Moving to NC.
Offline
Another option is to use infinality with harfbuzz 1.3.4
▶ pacman -Qs harfbuzz
local/harfbuzz 1.3.4-1
OpenType text shaping engine
local/harfbuzz-icu 1.3.4-1
OpenType text shaping engine (ICU integration)
local/lib32-harfbuzz 1.3.1-2
OpenType text shaping engine. (32-bit)
Offline
No, that is not an option: https://wiki.archlinux.org/index.php/Sy … nsupported
Offline
I've been seriously misunderstood.
I have no problem with fontconfig, I've moved back to the original fontconfig, enabled subpixel-rendering, slight hinting etc. There's no issues, and my fonts look the same as infinality.
the problem lies with GTK+. Their apps cannot use the cantarell font, and they replace it with the DejaVu font. GNOME is an example, if I try to change it's font to cantarell, It uses DejaVu. I've tried to change it via the Tweak Tool, dconf, and gsettings, they all fail. I can set any other font except for cantarell
pure GTK+ apps like gedit and geany cannot use the font either, while apps like LibreOffice can.
Here's another screenshot
Last edited by Abogical (2017-01-30 12:24:04)
Offline
What does this return?
fc-match cantarell
Offline
$ fc-match cantarell
DejaVuSans.ttf: "DejaVu Sans" "Book"
That's weird... what's going on?
Offline
Well, Cantarell is being replaced with DejaVu Sans.
What does this return then?
fc-list | grep -i cantarell
Offline
$ fc-list | grep -i cantarell
/usr/share/fonts/cantarell/Cantarell-Bold.otf: Cantarell:style=Bold
/usr/share/fonts/cantarell/Cantarell-BoldOblique.otf: Cantarell:style=BoldOblique
/usr/share/fonts/cantarell/Cantarell-Oblique.otf: Cantarell:style=Oblique
/usr/share/fonts/cantarell/Cantarell-Regular.otf: Cantarell:style=Regular
Offline
So the font is correctly installed, but somewhere along the line fontconfig decides to replace it with DejaVu Sans.
You might have some stray files in your /etc/fonts/conf.d from infinality, or you might have made a mistake when following the instructions.
Offline
Your right, I've removed the infinality config and it now it works
$ fc-match cantarell
Cantarell-Regular.otf: "Cantarell" "Regular"
This is my infinality config, I symlinked it to conf.d, clearly something's wrong with it, but I can't find it. It doesn't mention cantarell.
Last edited by Abogical (2017-01-11 17:32:18)
Offline
Ok the issue has been solved, by renaming the infinality config file '69-infinality.conf' to '60-infinality.conf'
Ordering matters for fontconfig, and thus based on that order, it appears the config overrides other configs from the other fonts. Also It turns out the issue wan't from GTK+ as I wrongly assumed. I'm not sure why LibreOffice only worked, which gave me that impression.
Thank you jaergenoth!
Last edited by Abogical (2017-01-11 17:54:22)
Offline
Sorry, this was not the real solution, the culprit seems to be the cantarell font config '31-cantarell.conf'.
Right after installing another font, the bug returned. However, removing this config fixed the issue for good. Renaming the infinality config wasn't needed.
I'm not sure what's the purpose of this config. It obviously comes with the 'cantarell-fonts' package. If you do know what's it for then please let me know.
Thank you.
Last edited by Abogical (2017-01-11 20:29:31)
Offline
You can read it: it just assigns the name.
Offline