ULTS 22,24: FontConfig broken by including ".conf" file

Bug #2061995 reported by Peter Grandi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu
New
Undecided
Unassigned
fontconfig (Ubuntu)
New
Undecided
Unassigned

Bug Description

This happens to me on both ULTS 22 and ULKTS 24 on FotnConfig in somewhat different ways:

* In ULTS 24 if there is a file '/etc/fonts/local.conf' then all fonts are rendered as if the font were not hinted or 'hinting' were 'false'. This is not noticeable if antialiasing is on, and most users default to antialiasing.

* In ULTS 22 if there is a file '$XDG_CONFIG_HOME/fontconfig/fonts.conf' then some fonts are no longer found, or get rendered with rectangular shapes. I guess not many users customize their font settings.

A telling example from ULTS 22:

$ cat /etc/fonts/conf.d/10-antialias.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Use the Antialiasing -->
  <match target="pattern">
    <edit name="antialias" mode="append"><bool>false</bool></edit>
  </match>
</fontconfig>
$ cp -p /etc/fonts/conf.d/10-antialias.conf $XDG_CONFIG_HOME/fontconfig/fonts.conf
$ fc-list 'dejavu sans mono' family
$ rm $XDG_CONFIG_HOME/fontconfig/fonts.conf
$ fc-list 'dejavu sans mono' family
DejaVu Sans Mono

This happens also with a skeleton '$XDG_CONFIG_HOME/fontconfig/fonts.conf' (or '/etc/fonts/local.conf') too:

$ cat > $XDG_CONFIG_HOME/fontconfig/fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
</fontconfig>
$ fc-list 'dejavu sans mono' family
$ rm $XDG_CONFIG_HOME/fontconfig/fonts.conf
$ fc-list 'dejavu sans mono' family
DejaVu Sans Mono

None of these anomalies happen under ULST 20.

My impression: symptoms vary and are weird, so probably it is something like a buffer overflow when reading the ".conf" files or the use of not-initialized memory.

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/2061995/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Peter Grandi (pg-8)
summary: - ULLTS 22,24: FontConfig broken by including ".conf" file
+ ULTS 22,24: FontConfig broken by including ".conf" file
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.