Liberation Sans Italic font not rendering properly on MATE DE

Get help for specific problems
Posts: 6
Joined: 15 Oct 2022

daninsky

(FreeFileSync_x86_64:138047): Pango-WARNING **: 18:34:23.188: failed to create cairo scaled font, expect ugly output. the offending font is 'Liberation Sans Italic 10.9990234375'
(FreeFileSync_x86_64:138047): Pango-WARNING **: 18:34:23.188: font_face status is: file not found
(FreeFileSync_x86_64:138047): Pango-WARNING **: 18:34:23.188: scaled_font status is: file not found
This warning arrise whenever is a widget trying to load and render a font and fails FFS.

Maybe it's a problem with MATE itself. The font is installed.

Work's normal on Cinnamon DE.
Attachments
FFS_font_bug.png
FFS_font_bug.png (27.6 KiB) Viewed 1724 times
Posts: 345
Joined: 7 Jan 2018

bgstack15

I am not an expert, but let's get some more details! Can you share your screen resolution in MATE, and if you are doing any software-based scaling (1.5x or 2x or something else)? Can you share your screen resolution in Cinnamon and scaling there too?
Posts: 6
Joined: 15 Oct 2022

daninsky

I am not an expert, but let's get some more details! Can you share your screen resolution in MATE, and if you are doing any software-based scaling (1.5x or 2x or something else)? Can you share your screen resolution in Cinnamon and scaling there too? bgstack15, 16 Oct 2022, 03:15
Both are 100% scale mode, 1920x1080 MATE, 1366x768 Cinnamon.
Posts: 6
Joined: 15 Oct 2022

daninsky

11.27 has the same problem unfortunately.
User avatar
Site Admin
Posts: 7506
Joined: 9 Dec 2007

Zenju

11.27 has the same problem unfortunately. daninsky, 16 Oct 2022, 13:47
Very strange. There should be no difference to the font handling of the main window file listing now.
Posts: 345
Joined: 7 Jan 2018

bgstack15

One possibility is that the different DEs are using different font files. That seems like quite a stretch, but we can bother to go down that lane if you wish. You will need to install strace. Because it is a command line utility, it might not appear in a graphical package manager. You should investigate using apt-get or yum or zypper or the other appropriate package manager for your distribution of Linux. The command will probably simply be sudo apt-get install strace.

Once you have strace, run the program with strace in a terminal.
$ strace /opt/FreeFileSync/FreeFileSync 2>&1 | grep -iE 'font'
Strace will show us the system calls FreeFileSync makes, that is, the commands it tells the kernel to do. I use strace when I want to see what files the program opens. In this case, we only care about any font files it looks for, so we are just searching (with grep) for "font." The 2 greater than-ampersand 1 sends the output of strace to the pipe so that grep can actually search its contents. This bit moves standard error (given a file number of 2 by default) to the same output as standard output (file number, or file descriptor 1), and standard output is what gets piped to the next program, which is grep.
Run this command inside each DE, and maybe perhaps we can learn if the fonts it loads are coming from different places.

When I run this program with strace, I see this entry (among others)
openat(AT_FDCWD, "/usr/share/fonts/truetype/liberation2/LiberationSans-Regular.ttf", O_RDONLY) = 7
Perhaps you have configured your MATE environment to use an italic font by default for everything? I have a LiberationSans-Italic.ttf but my FreeFileSync did not try to load it.
Posts: 6
Joined: 15 Oct 2022

daninsky

One possibility is that the different DEs are using different font files. That seems like quite a stretch, but we can bother to go down that lane if you wish. You will need to install strace. Because it is a command line utility, it might not appear in a graphical package manager. You should investigate using apt-get or yum or zypper or the other appropriate package manager for your distribution of Linux. The command will probably simply be sudo apt-get install strace.

Once you have strace, run the program with strace in a terminal.
$ strace /opt/FreeFileSync/FreeFileSync 2>&1 | grep -iE 'font'
Strace will show us the system calls FreeFileSync makes, that is, the commands it tells the kernel to do. I use strace when I want to see what files the program opens. In this case, we only care about any font files it looks for, so we are just searching (with grep) for "font." The 2 greater than-ampersand 1 sends the output of strace to the pipe so that grep can actually search its contents. This bit moves standard error (given a file number of 2 by default) to the same output as standard output (file number, or file descriptor 1), and standard output is what gets piped to the next program, which is grep.
Run this command inside each DE, and maybe perhaps we can learn if the fonts it loads are coming from different places.

When I run this program with strace, I see this entry (among others)
openat(AT_FDCWD, "/usr/share/fonts/truetype/liberation2/LiberationSans-Regular.ttf", O_RDONLY) = 7
Perhaps you have configured your MATE environment to use an italic font by default for everything? I have a LiberationSans-Italic.ttf but my FreeFileSync did not try to load it. bgstack15, 16 Oct 2022, 21:16
This is nice, but I didn't see much, I searched for additional strace flags (strace -e trace=open,openat,close,read,write,connect,accept), but nothing special appeared either, the only thing I see is related with the font is the FFS stdout, the same what I showed.
Posts: 6
Joined: 15 Oct 2022

daninsky

11.27 has the same problem unfortunately. daninsky, 16 Oct 2022, 13:47
Very strange. There should be no difference to the font handling of the main window file listing now. Zenju, 16 Oct 2022, 18:36
Sorry, was indeed corrected. I didn't mention that is another place that is broke that was looking, because my files was already in sync to see the sync dialog.
Synchronization Settings in the synchronization tab.
Attachments
FFS_font.png
FFS_font.png (67.96 KiB) Viewed 1666 times
Posts: 6
Joined: 15 Oct 2022

daninsky

Unfortunately mate has some problems besides the font, as you can see. But the fonts are a good fix.
User avatar
Site Admin
Posts: 7506
Joined: 9 Dec 2007

Zenju

Sorry, was indeed corrected. I didn't mention that is another place that is broke that was looking, because my files was already in sync to see the sync dialog.
Synchronization Settings in the synchronization tab. daninsky, 17 Oct 2022, 22:24
Should be fixed for the next release. The issues seem to be related to hard-coded values of the "Arial" font.