You are not logged in.

#1 2017-01-10 19:08:21

Abogical
Member
Registered: 2015-02-02
Posts: 8

[SOLVED] can't use cantarell fonts after leaving infinality

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

#2 2017-01-10 23:38:53

Abogical
Member
Registered: 2015-02-02
Posts: 8

Re: [SOLVED] can't use cantarell fonts after leaving infinality

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

#3 2017-01-11 00:41:43

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] can't use cantarell fonts after leaving infinality

Maybe rely on fontconfig to accurately set your fonts instead of Tweak Tool (whatever that is)...


Moving to NC.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2017-01-11 02:51:10

idmresettrial
Member
Registered: 2015-09-12
Posts: 29

Re: [SOLVED] can't use cantarell fonts after leaving infinality

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

#5 2017-01-11 03:57:23

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] can't use cantarell fonts after leaving infinality


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2017-01-11 11:09:53

Abogical
Member
Registered: 2015-02-02
Posts: 8

Re: [SOLVED] can't use cantarell fonts after leaving infinality

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

#7 2017-01-11 17:05:27

jaergenoth
Member
Registered: 2015-01-16
Posts: 85

Re: [SOLVED] can't use cantarell fonts after leaving infinality

What does this return?

fc-match cantarell

Offline

#8 2017-01-11 17:09:22

Abogical
Member
Registered: 2015-02-02
Posts: 8

Re: [SOLVED] can't use cantarell fonts after leaving infinality

$ fc-match cantarell
DejaVuSans.ttf: "DejaVu Sans" "Book"

That's weird... what's going on?

Offline

#9 2017-01-11 17:13:32

jaergenoth
Member
Registered: 2015-01-16
Posts: 85

Re: [SOLVED] can't use cantarell fonts after leaving infinality

Well, Cantarell is being replaced with DejaVu Sans.
What does this return then?

fc-list | grep -i cantarell

Offline

#10 2017-01-11 17:14:53

Abogical
Member
Registered: 2015-02-02
Posts: 8

Re: [SOLVED] can't use cantarell fonts after leaving infinality

$ 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

#11 2017-01-11 17:19:49

jaergenoth
Member
Registered: 2015-01-16
Posts: 85

Re: [SOLVED] can't use cantarell fonts after leaving infinality

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

#12 2017-01-11 17:32:06

Abogical
Member
Registered: 2015-02-02
Posts: 8

Re: [SOLVED] can't use cantarell fonts after leaving infinality

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

#13 2017-01-11 17:52:12

Abogical
Member
Registered: 2015-02-02
Posts: 8

Re: [SOLVED] can't use cantarell fonts after leaving infinality

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

#14 2017-01-11 20:29:16

Abogical
Member
Registered: 2015-02-02
Posts: 8

Re: [SOLVED] can't use cantarell fonts after leaving infinality

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

#15 2017-01-11 20:57:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] can't use cantarell fonts after leaving infinality

You can read it: it just assigns the name.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB