protonscr

Fontconfig error: "/etc/fonts/conf.d/

steamopen reviewedruntime
ValveSoftware/steam-for-linux#3307 · opened 2014-05-16 by ghost · updated 2019-07-18 · 26 comments · github
?ghost 2014-05-16 github

Hi,

I'm running Slacwkare 14.1 x86_64 and I noticed when I run steam from a terminal I have these messages regarding fontconfig;

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

Below is the 10-scale-bitmap-fonts.conf;

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

<match target="font">
  <test name="scalable" compare="eq">
    <bool>false</bool>
  </test>
  <edit name="pixelsizefixupfactor" mode="assign">
    <divide>
      <name target="pattern">pixelsize</name>
      <name target="font"   >pixelsize</name>
    </divide>
  </edit>
</match>
<match target="font">
  <test name="scalable" compare="eq">
    <bool>false</bool>
  </test>
  <edit name="scalingnotneeded" mode="assign">
    <and>
      <less>
        <name>pixelsizefixupfactor</name>
        <double>1.2</double>
      </less>
      <more>
        <name>pixelsizefixupfactor</name>
        <double>0.8</double>
      </more>
    </and>
  </edit>
</match>
<!--
  So far we determined the scale factor.  Now, check and if
  scaling is NOT desirable, just reset the scale factor to 1.0.
  -->
<match target="font">
  <test name="scalable" compare="eq">
    <bool>false</bool>
  </test>
  <test name="pixelsize" target="pattern" compare="less">
    <double>64</double>
  </test>
  <test name="hinting" compare="eq">
    <bool>true</bool>
  </test>
  <test name="scalingnotneeded" compare="eq">
    <bool>true</bool>
  </test>
  <edit name="pixelsizefixupfactor" mode="assign">
    <double>1.0</double>
  </edit>
</match>
<!--
  If we *are* going to scale, go ahead and do it.
  -->
<match target="font">
  <test name="scalable" compare="eq">
    <bool>false</bool>
  </test>
  <test name="pixelsizefixupfactor" compare="not_eq">
    <double>1.0</double>
  </test>
  <edit name="matrix" mode="assign">
    <times>
      <name>matrix</name>
      <matrix>
        <name>pixelsizefixupfactor</name> <double>0</double>
        <double>0</double> <name>pixelsizefixupfactor</name>
       </matrix>
    </times>
  </edit>
  <edit name="size" mode="assign">
    <divide>
      <name>size</name>
      <name>pixelsizefixupfactor</name>
    </divide>
  </edit>
</match>

</fontconfig>
Ggdrewb-valve maintainer 2014-05-16 github

It looks like fontconfig doesn't support this font's use of name substitution? I would think you'd get this error on any fontconfig use. Steam doesn't install this font as far as I know, so I'm not sure this is a Steam issue.

?ghost 2014-05-17 github

Here's the same exact issue;

https://bugs.freedesktop.org/show_bug.cgi?id=70258

Notice the reply?

works for me.
That is most likely happens if applications links older fontconfig statically/dynamically.
Please update that app to link to the right one or simply disable that config if you don't need it.

Hmm

Ggdrewb-valve maintainer 2014-05-17 github

Probably the fontconfig in the Steam runtime, then.

?ghost 2014-05-17 github

If you think then fontconfig in the Steam runtime, I hope this can be looked into...

By the way are you a developer on Steam, how does this GitHub issue reporting work here for the Linux client?

Will issues reported here found as problems, bugs, etc, get fixed eventually?

I'm a Slackware geek so I know Github and all this, I'm asking I meant, since this is so Ubuntu based, if there's any hope when issues are reported outside Ubuntu if we'll see fixes?

thanks

Ggdrewb-valve maintainer 2014-05-17 github

This is the right place for all Linux bugs and somebody will look into this. Steam runtime compatibility is important so this will probably get relatively high priority even though you're reporting it on Slackware. Unfortunately I can't give you any kind of firm timeframe, though.

?ghost 2014-05-17 github

Hi gdrewb-valve,

Oh no worries on time frames, sorry I wasn't clear, I'm a geek I know the deal on bug reporting.
I just wasn't sure how the Linux client was being handled, especially anything outside Ubuntu. You know most will tell you, to bad this is only officially supported on so and so...

Well sounds great, I'll be sure to report more I see, in fact the Big Picture audio lag is really a big problem.

Actually it should be called the 'Big Problem' instead of the Big Picture, LOL... I reported that below;

https://github.com/ValveSoftware/steam-for-linux/issues/72#issuecomment-43138056

thanks :)

?ghost 2014-08-13 github

Not sure if there have been any changes, but I wanted to let you know I'm still seeing this;

Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
Mml- 2014-09-13 github

Probably related to the older version of fontconfig used by steam-runtime.
10-scale-bitmap-fonts.conf Lines 67 to 70

<matrix>
  <name>pixelsizefixupfactor</name> <double>0</double>
  <double>0</double> <name>pixelsizefixupfactor</name>
</matrix>

<name>pixelsizefixupfactor</name>
Property pixelsizefixupfactor does not have the expected floating number.
(pixelsizefixupfactor = pattern-pixelsize / font-pixelsize)
For some reason this variable ends up empty or starts with a decimal point (not allowed).

line 78: saw unknown, expected number
Probably caused by the later assignment: size = size / pixelsizefixupfactor (devision by zero?)

?ghost 2014-12-05 github

Hi ml-,

Just reporting back to let you know I still see these messages...

Eeloyesp 2015-01-26 github
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number

This issue also appears in Debian sid.

PPlaque-fcc 2015-01-26 github

Happens also on Ubuntu 14.10, although I thought it's not related
directly to Steam.

?ghost 2015-01-29 github

Still hapenning in Slackware, so that makes 8 months now and not fixed... :(

Hhahn 2015-05-16 github

happens on fedora 21 :(

Yyackushevas 2015-07-30 github

Still happening on Fedora 22

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
Fontconfig warning: "/etc/fonts/conf.d/65-0-lohit-bengali.conf", line 32: unknown element "langset"
Fontconfig warning: "/etc/fonts/conf.d/69-gnu-free-sans.conf", line 24: unknown element "langset"
Fontconfig warning: "/etc/fonts/conf.d/69-gnu-free-serif.conf", line 24: unknown element "langset"
MMarkRose 2015-08-01 github

Still happening on Ubuntu 14.04. It also causes graphical corruption in Cities in Motion 2. Simple work-around/fix is:

rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libfontconfig.so.1
ln -s /usr/lib/i386-linux-gnu/libfontconfig.so.1 ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libfontconfig.so.1

TthePalindrome 2015-10-03 github

Just letting y'all know, it's a matter of the libfontconfig libs from steam being too old, flat out removing them from the steam runtime folder stops the fontconfig errors.

Yes, I have the latest, any newer and I'd be pulling from git :P

Ttxtsd 2015-11-18 github

Seeing this error on Arch.
@MarkRose 's fix works fine.

Rrkingsbury 2016-02-04 github

Seeing this on Linux Mint 17.3 and beta Steam client. @MarkRose's fix worked for me too.

TTzaphkiel 2016-02-22 github

Happening on Kubuntu with kernel 4.4.2 & latest nvidia & latest steam for Magicka 2.

VVictorShima 2016-07-06 github

Still happens on Fedora 23 when playing "The Stanley Parable".

To reproduce: start game > begin a new game > click mouse to skip the intro > press Esc while in-game

Using the solution of @MarkRose fixed the error, though the location of libfontconfig.so.1 is a bit different (use the command locate libfontconfig.so to find).

(off-topic: the fontconfig error was fixed, but game still crashes)

SStorm-Engineer 2016-07-20 github

Still present. Arch here.

@MarkRose 's workaround worked for me too.

TTerminalWitchcraft 2017-08-30 github

I still have the same issue here(Arch Linux)
@MarkRose fix worked for me!

I also installed lib32-fontconfig though.

TTheSuspiciousWombat 2017-10-15 github

Installing lib32-fontconfig under Arch fixed the problems for me

Ddecentral1se 2018-04-04 github

Yep, affects me on debian stretch under flatpak too.

Ttatsujb 2019-03-16 github

still happening....

ubuntu 18.04.02

markrose's fix no longer applies, it would be :

rm ~/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libfontconfig.so.1
ln -s /usr/lib/i386-linux-gnu/libfontconfig.so.1 ~/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libfontconfig.so.1

now, but the issue is nowadays /usr/lib/i386-linux-gnu/ does not contain a libfontconfig.so.1 anymore and sudo apt install lib32-fontconfig does not work as this package is no longer in the repos.

CCrayphish 2019-06-28 github

still happening....

ubuntu 18.04.02

markrose's fix no longer applies, it would be :

rm ~/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libfontconfig.so.1
ln -s /usr/lib/i386-linux-gnu/libfontconfig.so.1 ~/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libfontconfig.so.1

now, but the issue is nowadays /usr/lib/i386-linux-gnu/ does not contain a libfontconfig.so.1 anymore and sudo apt install lib32-fontconfig does not work as this package is no longer in the repos.

If you are using an ubuntu-based distro, this library is included in "libfontconfig1:i386", which will install /usr/lib/i386-linux-gnu/libfontconfig.so.1:

sudo apt install libfontconfig1:i386