maintainer-feedback requested: [Bug 256969] x11-fonts/fontconfig: 49-sansserif.conf doesn't work with fontconfig 2.13.93

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 04 Jul 2021 09:56:04 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-desktop (Team)
<desktop@FreeBSD.org> for maintainer-feedback:
Bug 256969: x11-fonts/fontconfig: 49-sansserif.conf doesn't work with
fontconfig 2.13.93
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256969



--- Description ---
After updating fontconfig 2.13.93, the configuration file '49-sansserif.conf'
shipped with fontconfig itself stops working. This means if some glyphs cannot
be found in the given font, fontconfig will pick fallback fonts randomly
instead of honoring what the user sets as sans-serif.

For example, I set sans-serif to 'Noto Sans CJK TC', but it is not guaranteed
that I will see 'Noto Sans CJK TC' when fontconfig needs a fallback font. It
sometimes picks 'Noto Sans CJK SC', 'Noto Sans CJK HK' and 'Noto Sans CJK KR'
as fallback fonts for glyphs which are also supported by 'Noto Sans CJK TC'.

https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/267

We can fix the issue by applying this upstream patch.

https://gitlab.freedesktop.org/fontconfig/fontconfig/-/merge_requests/142