[Bug 1784650] New: Fontconfig is slow, causing stuttering and
freezing
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1784650
Bug ID: 1784650
Summary: Fontconfig is slow, causing stuttering and freezing
Product: Fedora
Version: 31
Status: NEW
Component: fontconfig
Severity: high
Assignee: tagoh(a)redhat.com
Reporter: bepvte+bugzilla(a)gmail.com
QA Contact: extras-qa(a)fedoraproject.org
CC: ajax(a)redhat.com, caillon+fedoraproject(a)gmail.com,
fonts-bugs(a)lists.fedoraproject.org,
gnome-sig(a)lists.fedoraproject.org,
i18n-bugs(a)lists.fedoraproject.org,
john.j5live(a)gmail.com, mclasen(a)redhat.com,
pnemade(a)redhat.com, rhughes(a)redhat.com,
rstrode(a)redhat.com, sandmann(a)redhat.com,
tagoh(a)redhat.com
Target Milestone: ---
Classification: Fedora
Description of problem:
Fontconfig is much much slower than on other distros, and it stutters or
freezes applications that use it.
Version-Release number of selected component (if applicable):
Name : fontconfig
Version : 2.13.92
Release : 3.fc31
Architecture: x86_64
How reproducible:
I can reproduce this bug on a fresh Fedora 31 vm with the Xfce desktop and
google-noto-sans-* fonts installed.
Steps to Reproduce:
1. dnf install google-noto-sans-*
2. run gedit on the attached example file
alternatively
1. dnf install google-noto-sans-*
2. open firefox and browse to https://www.wikidata.org/wiki/Q52 (page with lots
of languages)
Actual results:
It takes around 60 seconds for gedit to become responsive to scrolling and
input. Mousepad is faster but still slow.
It takes firefox upwards of 5 minutes to get to first paint on a page with many
fonts or languages, compared to a simpler page.
Expected results:
Gedit should load files with many fonts at a similar speed as other distros.
The page should load quickly, like on Debian and others.
Additional info:
I have tried to diagnose the source of this issue in many ways.
Running `perf trace` on what sysprof indicated was the most busy function
(FcStrCmpIgnoreCaseAndDelims), shows that every name of every font family is
being compared to every other name of every other font family. I do not know if
this is a normal behaviour of fontconfig.
I have noticed the amount of calls to "FcStrCmpIgnoreCaseAndDelims" and program
startup time both drop to a similar amount as Debian's when all of the
"google-noto" configuration files in /etc/fonts/conf.d/ are deleted (These
files are not present in Debian). However, this might not be the source of the
problem:
In the Debian vm, with a copy of my computer's /etc/fonts/, including the
google-noto files, (I took care to ensure that there would be no broken
symlinks) and /usr/share/fonts, fontconfig does not stall any programs. The
amount of calls to FcStrCmpIgnoreCaseAndDelims is also much lower as well.
This led me to believe that it was a difference caused by compiler flags but
this does not seem to be the case. I tried to replace the optflags in the
package, except for the rpmbuild required debug ones, and found no difference.
I also checked to ensure that it was not caused by GCC version differences.
Debian results for mousepad:
1,845,449 calls to FcStrCmpIgnoreCaseAndDelims
Time: 5 seconds
Fedora results for mousepad:
11,658,380 calls to FcStrCmpIgnoreCaseAndDelims
Time: 23 seconds
https://perfht.ml/2tleJxN
Here is a link to a Firefox profiler result of the wikidata page, where in the
flame graph you can see that Firefox is spending most of its time in
fontconfig. You can also see "FirstNonBlankPaint" is at 50 seconds in the
marker table.
TLDR: Fontconfig matching is slow with all google-noto fonts installed, unless
you remove the noto config files. Using the same exact font directory and
config directory (including the noto config files) on Debian does not cause the
same problem.
--
You are receiving this mail because:
You are on the CC list for the bug.
2 years, 1 month
[Bug 1806272] New: forge-font macro transition causes broken
dependencies
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1806272
Bug ID: 1806272
Summary: forge-font macro transition causes broken dependencies
Product: Fedora
Version: rawhide
Status: NEW
Component: dejavu-fonts
Assignee: nicolas.mailhot(a)laposte.net
Reporter: decathorpe(a)gmail.com
QA Contact: extras-qa(a)fedoraproject.org
CC: fonts-bugs(a)lists.fedoraproject.org,
nicolas.mailhot(a)laposte.net, paul(a)frixxon.co.uk,
peter(a)thecodergeek.com
Target Milestone: ---
Classification: Fedora
With the transition to new forge-based fonts macros, the -common subpackage was
dropped, but some packages depend on that. They are now not installable on
fedora 32+ because that package is gone (only Obsoleted, not Provided).
This affects at least python3-weasyprint.
Additionally, the sdljava-demo package now has broken dependencies as well:
- /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf
- /usr/share/fonts/dejavu/DejaVuSans-BoldOblique.ttf
- /usr/share/fonts/dejavu/DejaVuSans-Oblique.ttf
- /usr/share/fonts/dejavu/DejaVuSans.ttf
Probably those files were renamed with the forge macro transition.
--
You are receiving this mail because:
You are on the CC list for the bug.
2 years, 2 months
[Bug 1890210] New: CVE-2020-15999 freetype: heap-based buffer
overflow via malformed ttf files
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1890210
Bug ID: 1890210
Summary: CVE-2020-15999 freetype: heap-based buffer overflow
via malformed ttf files
Product: Security Response
Hardware: All
OS: Linux
Status: NEW
Component: vulnerability
Keywords: Security
Severity: medium
Priority: medium
Assignee: security-response-team(a)redhat.com
Reporter: gsuckevi(a)redhat.com
CC: ajax(a)redhat.com, caillon+fedoraproject(a)gmail.com,
erack(a)redhat.com, fonts-bugs(a)lists.fedoraproject.org,
gecko-bugs-nobody(a)redhat.com, gghezzo(a)redhat.com,
gnome-sig(a)lists.fedoraproject.org, gparvin(a)redhat.com,
jhorak(a)redhat.com, john.j5live(a)gmail.com,
jramanat(a)redhat.com, jweiser(a)redhat.com,
kevin(a)tigcc.ticalc.org, mclasen(a)redhat.com,
mkasik(a)redhat.com, rhughes(a)redhat.com,
rstrode(a)redhat.com, sandmann(a)redhat.com,
scorneli(a)redhat.com, stcannon(a)redhat.com,
stransky(a)redhat.com, thee(a)redhat.com,
tpopela(a)redhat.com
Target Milestone: ---
Classification: Other
A flaw was found in freetype in the way it processes PNG images embedded into
fonts. A crafted TTF file can lead to heap-based buffer overflow due to integer
truncation in Load_SBit_Png function.
Reference:
https://savannah.nongnu.org/bugs/?59308
Upstream patch:
https://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=a3bab...
--
You are receiving this mail because:
You are on the CC list for the bug.
2 years, 2 months
[Bug 1820166] New: Droid sans overrides my default CJK font
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1820166
Bug ID: 1820166
Summary: Droid sans overrides my default CJK font
Product: Fedora
Version: 32
Status: NEW
Component: google-droid-fonts
Severity: low
Assignee: nicolas.mailhot(a)laposte.net
Reporter: taocrismon(a)hotmail.com
QA Contact: extras-qa(a)fedoraproject.org
CC: fonts-bugs(a)lists.fedoraproject.org,
nicolas.mailhot(a)laposte.net, oliver(a)redhat.com,
paul(a)frixxon.co.uk, tremble(a)tremble.org.uk
Target Milestone: ---
Classification: Fedora
Description of problem:
I have this (per-user) fontconfig configuration to set my preferred sans-serif
font:
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Sans</family>
<family>Noto Sans CJK SC</family>
</prefer>
</alias>
It should fall back to "Noto Sans CJK SC" when displaying CJK characters. Since
F32 this isn't working anymore. CJK characters are rendered in a different
font, which I cannot recognize.
Digging through fc_debug logs, "Droid Sans" is appended right after "Noto
Sans", before "Noto Sans CJK SC" in the font matching list. Debug messages
confirm it's indeed Droid Sans getting picked.
Removing the relevant part in /etc/fonts/conf.d/65-google-droid-sans-fonts.conf
mitigates this issue. However since both Noto Sans & Droid Sans do not contain
CJK characters, they should both be skipped in favor of CJK fonts. Could this
be a metadata problem? i.e. Droid Sans wrongly advertises as CJK capable.
Version-Release number of selected component (if applicable):
google-droid-sans-fonts-20200215-3.fc32.noarch
--
You are receiving this mail because:
You are on the CC list for the bug.
2 years, 2 months
[Bug 1938205] New: google-droid-sans-fonts has higher priority than
google-noto-sans-fonts
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1938205
Bug ID: 1938205
Summary: google-droid-sans-fonts has higher priority than
google-noto-sans-fonts
Product: Fedora
Version: 34
Status: NEW
Component: google-droid-fonts
Assignee: nicolas.mailhot(a)laposte.net
Reporter: tagoh(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: fonts-bugs(a)lists.fedoraproject.org,
nicolas.mailhot(a)laposte.net, oliver(a)redhat.com
Target Milestone: ---
Classification: Fedora
Description of problem:
Summary says it all. I don't think Droid Fonts is better than Noto Fonts.
Version-Release number of selected component (if applicable):
google-droid-sans-fonts-20200215-9.fc34.noarch
How reproducible:
Steps to Reproduce:
1.rpmm -ql google-droid-sans-fonts google-noto-sans-fonts | grep conf.d
2.
3.
Actual results:
/etc/fonts/conf.d/65-google-droid-sans-fonts.conf
/etc/fonts/conf.d/66-google-noto-sans.conf
Expected results:
google-noto-sans one should come first.
Additional info:
--
You are receiving this mail because:
You are on the CC list for the bug.
2 years, 2 months
[Bug 2013083] New: 31-cantarell.conf causes inconsistent font choice
for numerals and symbols when the system locale is zh-*
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=2013083
Bug ID: 2013083
Summary: 31-cantarell.conf causes inconsistent font choice for
numerals and symbols when the system locale is zh-*
Product: Fedora
Version: 35
Status: NEW
Component: abattis-cantarell-fonts
Assignee: klember(a)redhat.com
Reporter: vtq-gnome(a)outlook.com
QA Contact: extras-qa(a)fedoraproject.org
CC: cosimo.cecchi(a)gmail.com,
fonts-bugs(a)lists.fedoraproject.org,
klember(a)redhat.com, mark(a)net-c.com, me(a)fale.io,
tagoh(a)redhat.com
Target Milestone: ---
Link ID: GNOME Gitlab GNOME/gnome-shell/-/issues/4683
Classification: Fedora
Created attachment 1832054
--> https://bugzilla.redhat.com/attachment.cgi?id=1832054&action=edit
Inconsistent font for numerals and symbols in Nautilus
Description of problem:
In Fedora Workstation, the GNOME desktop is using Cantarell as its main font.
However, the following section in /etc/fonts/conf.d/31-cantarell.conf, which
comes from Fedora's abattis-cantarell-fonts package, allows the font choice to
be overridden:
<match target="pattern">
<test qual="any" name="family">
<string>Cantarell</string>
</test>
<edit name="family" mode="assign" binding="weak">
<string>Cantarell</string>
</edit>
</match>
$ env LANG=en_US.utf8 fc-match Cantarell
Cantarell-Regular.otf: "Cantarell" "Regular"
$ env LANG=zh_CN.utf8 fc-match Cantarell
NotoSansCJK-Regular.ttc: "Noto Sans CJK SC" "Regular"
GTK/Pango seems to select a font based on the language of the text, and the
decision is affected by the context. When the text is only numerals and symbols
it will assume the language from the locale. This kind of decisions seems to be
reasonable too. So for example, Latin script will still be displayed with
Cantarell. "1234567890" will be displayed with Noto Sans CJK while "1234567890
GNOME" will be displayed with Cantarell (see screenshot):
$ env LANG=zh_CN.utf8 pango-view --markup -t '<span face="Cantarell"
font_features="tnum" size="xx-large">1234567890</span>'
$ env LANG=zh_CN.utf8 pango-view --markup -t '<span face="Cantarell"
font_features="tnum" size="xx-large">1234567890 GNOME</span>'
As a result, numerals and symbols in the GNOME UI are sometimes displayed with
Cantarell and sometimes displayed with Noto Sans CJK (see screenshots). The
inconsistency makes the UI appear broken. This is especially noticeable for
time in various places of the UI, because time is displayed in Noto Sans CJK
and the separator between hour and minute (a ratio symbol, which is a
full-width glyth in Noto Sans CJK and many other CJK fonts) has extra blank
space around it. (See https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4683)
Version-Release number of selected component (if applicable):
0.301-3.fc35
How reproducible:
Always
Steps to Reproduce:
1. In GNOME desktop, choose "中文 臺灣", "中文 香港", or "汉语 中国" in "Settings" –
"Region & Language" – "Language".
2. Log out & log in.
Actual results:
Numerals and symbols in the GNOME UI are sometimes displayed with Cantarell and
sometimes displayed with Noto Sans CJK (see screenshots).
Expected results:
Numerals and symbols should be consistently displayed with the same font,
ideally the same as the Latin alphabet. Since GNOME explicitly requests
Cantarell as UI font, Cantarell should be used here. Noto Sans CJK would only
be used as fallback for Chinese characters which are not covered by Cantarell.
Note that other common Latin fonts in the system are not overridden by Noto
Sans CJK like Cantarell is:
$ env LANG=zh_CN.utf8 fc-match "DejaVu Sans"
DejaVuSans.ttf: "DejaVu Sans" "Regular"
$ env LANG=zh_CN.utf8 fc-match "Liberation Sans"
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"
$ env LANG=zh_CN.utf8 fc-match "Nimbus Sans"
NimbusSans-Regular.otf: "Nimbus Sans" "Regular"
Generally in mixed use of Latin and Chinese fonts, it is common to use the
selected Latin font for numbers and symbols and only fallback to the Chinese
font for glyths not covered. This is seen in word processors (e.g.
LibreOffice), Flatpak apps (because the Freedesktop runtime doesn't have font
config similar to the 31-cantarell.conf), as well as other OS (e.g. MacOS,
Android).
By deleting the previously mentioned fontconfig section in 31-cantarell.conf,
the expected results can be achieved (see screenshots).
env LANG=zh_CN.utf8 fc-match Cantarell
Cantarell-Regular.otf: "Cantarell" "Regular"
Additional info:
In my test without the relevant fontconfig section everything seems to be
working very well and I've not noticed any adverse effect. But I'm not aware of
why it was originally included in the package.
An alternative solution is to use Noto Sans CJK for everything if the locale is
zh-*. But this is less favorable because it's against upstream choice of
Cantarell and needs a change in gsettings-desktop-schemas for these locales.
The clock separator issue would additionally need workarounds in Nautilus and
in GNOME translations to fix.
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2013083
2 years, 3 months
[Bug 1993670] New: segfault with pango-view assert in cairo
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1993670
Bug ID: 1993670
Summary: segfault with pango-view assert in cairo
Product: Fedora
Version: 34
Hardware: x86_64
OS: Linux
Status: NEW
Component: pango
Severity: high
Assignee: pwu(a)redhat.com
Reporter: andre.maute(a)gmx.de
QA Contact: extras-qa(a)fedoraproject.org
CC: caillon+fedoraproject(a)gmail.com,
fonts-bugs(a)lists.fedoraproject.org,
gnome-sig(a)lists.fedoraproject.org,
i18n-bugs(a)lists.fedoraproject.org, mclasen(a)redhat.com,
pwu(a)redhat.com, rhughes(a)redhat.com,
rstrode(a)redhat.com, sandmann(a)redhat.com,
tagoh(a)redhat.com
Target Milestone: ---
Classification: Fedora
Description of problem:
1. This one works
$ pango-view --nodisplay --text "abc"
2. This one doesn't
$ pango-view --no-display --text "abc"
pango-view: cairo-hash.c:217: _cairo_hash_table_destroy: Assertion
`hash_table->live_entries == 0' failed.
Aborted (core dumped)
So pango-view triggers an assertion in Cairo.
Version-Release number of selected component (if applicable):
$ dnf repoquery --installed pango
pango-0:1.48.7-1.fc34.i686
pango-0:1.48.7-1.fc34.x86_64
How reproducible:
always
Steps to Reproduce:
1. see 1. of description above
2. see 2. of description above
Actual results:
segfault
Expected results:
no segfault
Additional info:
--
You are receiving this mail because:
You are on the CC list for the bug.
2 years, 3 months
[Bug 1931547] New: Cantarell Regular rendering issues in Gnome Shell
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1931547
Bug ID: 1931547
Summary: Cantarell Regular rendering issues in Gnome Shell
Product: Fedora
Version: 33
Hardware: x86_64
OS: Linux
Status: NEW
Component: abattis-cantarell-fonts
Severity: low
Assignee: klember(a)redhat.com
Reporter: gregswift(a)gmail.com
QA Contact: extras-qa(a)fedoraproject.org
CC: cosimo.cecchi(a)gmail.com,
fonts-bugs(a)lists.fedoraproject.org, ian(a)ianweller.org,
klember(a)redhat.com, me(a)fale.io, tagoh(a)redhat.com
Target Milestone: ---
Classification: Fedora
Created attachment 1758636
--> https://bugzilla.redhat.com/attachment.cgi?id=1758636&action=edit
broken font lock screen clock
Description of problem:
I've got about 7 machines running fedora 33, to the same patch level. 4 of them
were showing poorly rendered fonts/wrong characters in various parts of the
gnome-shell ui. Primarily: lock screen time, unlock password entry field, and
the top bar calendar view. See attached screenshots. For one of the machines it
stopped doing it after a week or 2. The other machines kept doing it until I
changed the `Interface Text` font using TweakTool, the default is Cantarell
Regular, and any other font seems to be fine, including other Cantarell fonts.
Version-Release number of selected component (if applicable):
The problem started after update on 2/1 which included
abattis-cantarell-fonts-0.301-1.fc33.noarch
/var/log/dnf.rpm.log:2021-02-01T13:07:46-0600 SUBDEBUG Upgrade:
abattis-cantarell-fonts-0.301-1.fc33.noarch
/var/log/dnf.rpm.log:2021-02-01T13:10:00-0600 SUBDEBUG Upgraded:
abattis-cantarell-fonts-0.201-4.fc33.noarch
How reproducible:
On the 3 remaining machines with the issue if I set the font back to Cantarell
Regular the problem returns. But I haven't been able to make it happen on
other machines that arent experiencing the issue.
Steps to Reproduce:
1. Run Fedora 33 with Gnome, using defaults
Actual results:
You will either experience the problem or you won't.
Expected results:
Fonts to be rendered properly.
Additional info:
--
You are receiving this mail because:
You are on the CC list for the bug.
2 years, 4 months
[Bug 1910361] Fonts are listed multiple times in Gnome programs
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1910361
Ben Cotton <bcotton(a)redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |EOL
Status|NEW |CLOSED
Last Closed| |2021-11-30 18:54:14
--- Comment #14 from Ben Cotton <bcotton(a)redhat.com> ---
Fedora 33 changed to end-of-life (EOL) status on 2021-11-30. Fedora 33 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.
Thank you for reporting this bug and we are sorry it could not be fixed.
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=1910361
2 years, 4 months