From ce2cb4fb5dffb45d6d8b57d3306dca43d22a3eb7 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Thu, 5 Oct 2017 20:36:31 +0900 Subject: [PATCH] Backport a patch to change the order of the emoji fonts. (#1496761) --- fontconfig-emoji.patch | 94 ++++++++++++++++++++++++++++++++++++++++++ fontconfig.spec | 8 +++- 2 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 fontconfig-emoji.patch diff --git a/fontconfig-emoji.patch b/fontconfig-emoji.patch new file mode 100644 index 0000000..2c39e1b --- /dev/null +++ b/fontconfig-emoji.patch @@ -0,0 +1,94 @@ +From b861a2a5b09e06795dea4de6e72447d364b89473 Mon Sep 17 00:00:00 2001 +From: Bastien Nocera +Date: Thu, 5 Oct 2017 12:17:59 +0200 +Subject: [PATCH] conf: Prefer system emoji fonts to third-party ones + +Prefer the system provided emoji fonts on systems which provide one, +such as Windows, MacOS and Android, even if the Emoji One or Emoji Two +fonts are installed. + +This also allows free software OSes such as GNOME to prefer the Emoji +One font, which is not used in other OSes and therefore has a unique +brand identity, by installing them and only them by default. + +Users can use more capable fonts while Emoji One and Emoji Two catch up +by installing a font otherwise already used by another system, such as +Google's freely redistributable Noto Emoji font. + +https://bugzilla.redhat.com/show_bug.cgi?id=1496761 +--- + conf.d/45-generic.conf | 16 +++++++++------- + conf.d/60-generic.conf | 5 +++-- + 2 files changed, 12 insertions(+), 9 deletions(-) + +diff --git a/conf.d/45-generic.conf b/conf.d/45-generic.conf +index f6076bb..791d12d 100644 +--- a/conf.d/45-generic.conf ++++ b/conf.d/45-generic.conf +@@ -5,32 +5,34 @@ + + + ++ + +- Emoji Two ++ Noto Color Emoji + emoji + + +- Emoji One ++ Apple Color Emoji + emoji + + +- Noto Color Emoji ++ Segoe UI Emoji + emoji + + +- Apple Color Emoji ++ Twitter Color Emoji + emoji + + +- Segoe UI Emoji ++ EmojiOne Mozilla + emoji + ++ + +- Twitter Color Emoji ++ Emoji Two + emoji + + +- EmojiOne Mozilla ++ Emoji One + emoji + + +diff --git a/conf.d/60-generic.conf b/conf.d/60-generic.conf +index 2a2b809..7985ce9 100644 +--- a/conf.d/60-generic.conf ++++ b/conf.d/60-generic.conf +@@ -29,14 +29,15 @@ + + emoji + +- Emoji Two +- Emoji One + + Noto Color Emoji + Apple Color Emoji + Segoe UI Emoji + Twitter Color Emoji + EmojiOne Mozilla ++ ++ Emoji Two ++ Emoji One + + Noto Emoji + Android Emoji +-- +2.14.1 + diff --git a/fontconfig.spec b/fontconfig.spec index 9c51c90..0fc9bef 100644 --- a/fontconfig.spec +++ b/fontconfig.spec @@ -3,7 +3,7 @@ Summary: Font configuration and customization library Name: fontconfig Version: 2.12.6 -Release: 2%{?dist} +Release: 3%{?dist} # src/ftglue.[ch] is in Public Domain # src/fccache.c contains Public Domain code # fc-case/CaseFolding.txt is in the UCD @@ -16,6 +16,8 @@ Source2: fc-cache # https://bugzilla.redhat.com/show_bug.cgi?id=140335 Patch0: %{name}-sleep-less.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=1496761 +Patch1: %{name}-emoji.patch BuildRequires: expat-devel BuildRequires: freetype-devel >= %{freetype_version} @@ -60,6 +62,7 @@ which is useful for developing applications that uses fontconfig. %prep %setup -q %patch0 -p1 -b .sleep-less +%patch1 -p1 -b .emoji %build # We don't want to rebuild the docs, but we want to install the included ones. @@ -151,6 +154,9 @@ HOME=/root /usr/bin/fc-cache -s %doc fontconfig-devel.txt fontconfig-devel %changelog +* Thu Oct 5 2017 Akira TAGOH - 2.12.6-3 +- Backport a patch to change the order of the emoji fonts. (#1496761) + * Tue Oct 3 2017 Akira TAGOH - 2.12.6-2 - Bump the release to address the upgrade path issue.