Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 650370 - media-libs/fontconfig-2.13.0: Font weight not working (seen with menubar font in app-editors/emacs-25.3-r3)
Summary: media-libs/fontconfig-2.13.0: Font weight not working (seen with menubar font...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Fonts Team
Keywords: UPSTREAM
Depends on:
Reported: 2018-03-13 10:29 UTC by Ulrich Müller
Modified: 2018-03-14 12:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

Screenshot with fontfonfig-2.12.6 (emacs1.png,27.65 KB, image/png)
2018-03-13 10:30 UTC, Ulrich Müller
Screenshot with fontfonfig-2.13.0 (emacs2.png,27.16 KB, image/png)
2018-03-13 10:31 UTC, Ulrich Müller
emerge --info (emerge-info,7.00 KB, text/plain)
2018-03-13 10:32 UTC, Ulrich Müller

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2018-03-13 10:29:40 UTC
I have the following lines in my ~/.Xresources:

Emacs.pane.menubar.font: Droid Sans-10:bold
Emacs.pane.menubar.background: maroon
Emacs.pane.menubar.foreground: ivory

With media-libs/fontconfig-2.13.0, emacs-25.3-r3 will show the menubar font as medium weight. With fontconfig-2.12.6, it is correctly shown as bold.
Comment 1 Ulrich Müller gentoo-dev 2018-03-13 10:30:50 UTC
Created attachment 523706 [details]
Screenshot with fontfonfig-2.12.6
Comment 2 Ulrich Müller gentoo-dev 2018-03-13 10:31:28 UTC
Created attachment 523708 [details]
Screenshot with fontfonfig-2.13.0
Comment 3 Ulrich Müller gentoo-dev 2018-03-13 10:32:06 UTC
Created attachment 523710 [details]
emerge --info
Comment 4 Ulrich Müller gentoo-dev 2018-03-13 10:54:54 UTC
Upstream bug report:
Comment 5 Ulrich Müller gentoo-dev 2018-03-13 20:56:42 UTC
Definitely a problem with fontconfig-2.13.0:

$ fc-match 'Droid Sans-10:bold'
DroidSans-Bold.ttf: "Droid Sans" "Bold"
$ fc-match 'Droid Sans-10:bold'
DroidSans.ttf: "Droid Sans" "Regular"

Upstream bug report:

Comment 6 Ulrich Müller gentoo-dev 2018-03-13 21:00:06 UTC
(In reply to Ulrich Müller from comment #5)
> Definitely a problem with fontconfig-2.13.0:

Sorry, these commands are with different versions.
With fontconfig-2.12.6 (behaviour as expected):

> $ fc-match 'Droid Sans-10:bold'
> DroidSans-Bold.ttf: "Droid Sans" "Bold"

And with fontconfig-2.13.0:

> $ fc-match 'Droid Sans-10:bold'
> DroidSans.ttf: "Droid Sans" "Regular"
Comment 7 Larry the Git Cow gentoo-dev 2018-03-14 12:33:03 UTC
The bug has been closed via the following commit(s):

commit 34fb871502ff7941c54b6058727caf3ef563dc39
Author:     Ulrich Müller <>
AuthorDate: 2018-03-14 12:31:50 +0000
Commit:     Ulrich Müller <>
CommitDate: 2018-03-14 12:31:50 +0000

    media-libs/fontconfig: Fix handling of locale and of font weights.
    Non-maintainer commit. Patches from upstream.
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 .../files/fontconfig-2.13.0-locale.patch           |  37 +++++
 .../fontconfig/files/fontconfig-2.13.0-names.patch |  93 ++++++++++++
 media-libs/fontconfig/fontconfig-2.13.0-r1.ebuild  | 164 +++++++++++++++++++++
 3 files changed, 294 insertions(+)