FS#72212 - [cantarell-fonts] Regular width font missing after upgrade

Attached to Project: Arch Linux
Opened by Areg (mintsoup) - Wednesday, 22 September 2021, 20:25 GMT
Last edited by Toolybird (Toolybird) - Monday, 25 September 2023, 05:51 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No


The updated package seems to be missing the regular width font. I noticed this in emacs when I couldn't set the font's weight to regular, instead only light and bold worked.

Additional info:

Steps to reproduce:
1) Upgrade cantarell-fonts to the latest version
2) Open Emacs
3) Try to use Cantarell regular font
4) Notice it either renders it as light or bold
This task depends upon

Closed by  Toolybird (Toolybird)
Monday, 25 September 2023, 05:51 GMT
Reason for closing:  Upstream
Additional comments about closing:  Refer comments from PM. See also  FS#73378 
Comment by Jan Alexander Steffens (heftig) - Sunday, 26 September 2021, 18:56 GMT
Cantarell works fine for me. I do not use Emacs, though.

~> fc-list | grep Cantarell
/usr/share/fonts/cantarell/Cantarell-VF.otf: Cantarell:style=Bold
/usr/share/fonts/cantarell/Cantarell-VF.otf: Cantarell:style=Light
/usr/share/fonts/cantarell/Cantarell-VF.otf: Cantarell:style=Regular
/usr/share/fonts/cantarell/Cantarell-VF.otf: Cantarell
/usr/share/fonts/cantarell/Cantarell-VF.otf: Cantarell:style=Extra Bold
/usr/share/fonts/cantarell/Cantarell-VF.otf: Cantarell:style=Thin
Comment by Sajjad Heydari (MCSH) - Wednesday, 29 September 2021, 12:35 GMT
This is happening to me on Gnome as well. It shows up in the tweaks font menu but the title fonts is missing.
Comment by Jan Alexander Steffens (heftig) - Wednesday, 29 September 2021, 12:55 GMT
What is title fonts?
Comment by Sajjad Heydari (MCSH) - Wednesday, 29 September 2021, 12:58 GMT
They are set to "Cantarell regular 11"
Comment by Jan Alexander Steffens (heftig) - Wednesday, 29 September 2021, 12:58 GMT
If you just updated, make sure to reboot so the font caches aren't broken.
Comment by Hp.Gisler (hpgisler) - Wednesday, 29 September 2021, 14:11 GMT
I second the bug-report. Since the update to cantarell-fonts 1:0.303-1 the normal :weight is not shown anymore in EMACS (org-mode headers):

'(variable-pitch ((t (:family "Cantarell" :weight normal)))))

--> renders the font in org-mode headers (probably) 'Light'.

Note: I've rebooted the machine - issue remains.
Comment by Areg (mintsoup) - Sunday, 10 October 2021, 16:49 GMT
I checked the files of the package and the new version only has the -VF.otf file, not the -Regular.otf, -Bold.otf, etc ones. Also, I noticed Emacs doesn't render Cantarell Italic either, but renders for example NotoSans Italic fine. What's going on here? Why is only Emacs misbehaving? Isn't fetching fonts the responsibility of system-wide libraries?
Comment by Jan Alexander Steffens (heftig) - Sunday, 10 October 2021, 17:21 GMT
Yeah, we only packaged VF because upstream requested to either package the classic fonts *or* the variable font. The VF is more powerful as it not just contains all the classic weights but can also interpolate between them.

I think Cantarell used to have an italic face at first release, but that got removed quite a while ago when it was revamped.
Comment by Anton Lazarev (antonok) - Wednesday, 27 October 2021, 18:04 GMT
I've also been experiencing this issue; when launching Chromium after compiling from source, any regular-weight UI fonts (which are all Cantarell) are invisible/zero-width.
Comment by Jan Alexander Steffens (heftig) - Monday, 01 November 2021, 21:53 GMT
adobe-source-sans-fonts contains the regular "Source Sans 3" and the variable "Source Sans 3 VF". Is the latter font affected as well?
Comment by Areg (mintsoup) - Thursday, 11 November 2021, 10:38 GMT
Source Sans 3 VF works fine for me - all the weights seem ok. Does that mean there's something wrong with this font? Considering antonok had problems with chromium rendering Cantarell too, I think it's more likely something's wrong with this font.
Comment by Tobias Menzi (TobTobXX) - Friday, 07 January 2022, 12:00 GMT
This might also be relevant to LibreOffice: https://bugs.documentfoundation.org/show_bug.cgi?id=130149#c8

When printing a document with text with the Cantarell font, the text won't be visible at all in the PDF/printout. I'll test this weekend if providing the non-variable fonts fixes the issue.
Comment by Anton Lazarev (antonok) - Monday, 31 January 2022, 20:58 GMT
There appears to be some interaction with the desktop environment as well. I'm seeing it on bspwm, and I've just talked to someone who was having the same issue on i3 and Sway, but *not* on Cinnamon.
Comment by Jan Sonntag (jmetrius) - Monday, 21 March 2022, 20:09 GMT
I recently hit a similar bug in Zotero (which is based on a Firefox version without mature variable font support) caused by the upstream decision to not provide static fonts any longer. Therefore, I created an AUR package which builds the static fonts (https://aur.archlinux.org/packages/cantarell-static-fonts). Maybe someone else here finds it useful?