Cura: [3.3.1] Fonts not loaded for Russian

Created on 3 Jun 2018  ·  11Comments  ·  Source: Ultimaker/Cura

Application Version
3.3.1

Platform
Ubuntu 18.04 LTS x64

Good afternoon.
There is such a problem.
When I run Cura-3.3.1.AppImage, the console displays the following errors:

Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 80: saw unknown, expected number

And when choosing the Russian language, all the inscriptions become distorted (the interval between letters increases and the design of the font disappears).

ultimaker cura_005

But if i copy the directory "noto-sans" from the program directory to "/usr/share/fonts/truetype/", then the font in the sidebar becomes correct, but nothing changes in the title of the window and the settings window.

cura2

Copying the "noto-sans-display" directory to "/usr/share/fonts/truetype/" does not change anything.
Installation of these fonts in the system does not give anything.
I checked on different PCs with OS UBUNTU 18.04 LTS x64, the behavior is the same.

If it is not possible to quickly fix it, tell me please what fonts need to be installed and where.

Sorry for my English. I use Google translator.

Translations Uranium FixeSolved Bug

Most helpful comment

alternate fixed

cd /tmp
wget https://launchpad.net/~no1wantdthisname/+archive/ubuntu/ppa/+files/fontconfig-infinality_20130104-0ubuntu0ppa1_all.deb
sudo dpkg -i fontconfig-infinality_20130104-0ubuntu0ppa1_all.deb
sudo bash /etc/fonts/infinality/infctl.sh setstyle 
Select a style:
   6) win7    

Снимок экрана от 2019-03-27 20-53-06

All 11 comments

My best guess is it has to do with the latest Ubuntu release, we haven't been able to test on that yet. Can you try the latest LTS release (17.04 I believe)?

I've now checked on all Ubuntu systems I have available.

On a real PC
Ubuntu 17.10 x64
Ubuntu 16.04 x64

In the VMware virtual machine
Ubuntu 17.04 x64
Ubuntu 14.04 x64

Errors in the console and font errors have remained the same.

I have the same problem on a Gentoo Linux
cura3.2.1 runs without this problem
cura3.3.1

Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 80: saw unknown, expected number

We know of this problem. We've seen it too. It happens on all Linux computers ever since we switched to Noto Sans. We don't know a solution to it though. Since the use case of Russian on Linux computers is pretty small, we haven't yet invested time to investigate a solution.

Cura 4.0.0 same problem.

maybe answer

alternate fixed

cd /tmp
wget https://launchpad.net/~no1wantdthisname/+archive/ubuntu/ppa/+files/fontconfig-infinality_20130104-0ubuntu0ppa1_all.deb
sudo dpkg -i fontconfig-infinality_20130104-0ubuntu0ppa1_all.deb
sudo bash /etc/fonts/infinality/infctl.sh setstyle 
Select a style:
   6) win7    

Снимок экрана от 2019-03-27 20-53-06

Looks promising. I wouldn't know how we could get that in our AppImage though. This is out of my league in Linux-fu.

Thanks, it works well enough, but it requires tweak system fonts and may affect to other programs.
I tryed and with win7 style my pycharm began to look ugly, too thin fonts, looks good with linux style.
Seems Cura's font requres _infinality_ support, but linux officially not support it now, was replaced by TrueType v40.

In version 4.5 we've updated the fonts to a newer version. Maybe that fixes it?

The bug doesn't reproduce for me when running from source, but that may also be due to having that "infinality" unknowingly installed on my system.

Let's assume this is fixed then.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ferociousdiablo picture ferociousdiablo  ·  3Comments

thopiekar picture thopiekar  ·  3Comments

Liger0 picture Liger0  ·  3Comments

rudowinger picture rudowinger  ·  3Comments

jornada812 picture jornada812  ·  3Comments