Add an alias for Symbol font to Noto Sans Symbols/Symbols2.

Resolves: rhbz#2088665
This commit is contained in:
Akira TAGOH 2022-11-25 16:40:14 +09:00
parent 5ecf27bfa1
commit 447b808ce7
4 changed files with 131 additions and 4 deletions

View File

@ -22,7 +22,7 @@ in Unicode.\
Name: %{fontname}-fonts
Version: 20201206^1.git%{snapver}
Release: 6%{?dist}
Release: 7%{?dist}
Summary: Hinted and Non Hinted OpenType fonts for Unicode scripts
License: OFL
URL: https://github.com/googlefonts/noto-fonts/
@ -32,6 +32,9 @@ Source1: google-noto-sans-math-vf.conf
Source2: google-noto-sans-math.conf
Source3: google-noto-naskh-arabic-ex.conf
Source4: NotoSansSinhala-v2.006.zip
Source5: google-noto-sans-symbols-ex.conf
Source6: google-noto-sans-symbols2-ex.conf
Source7: google-noto-sans-symbols-vf-ex.conf
BuildArch: noarch
BuildRequires: fonts-rpm-macros
@ -60,8 +63,12 @@ local subpackages = {
{ alias="cursive", family="Rashi Hebrew", lang={ "he" } },
{ alias="fantasy", family="Music" },
{ alias="fantasy", family="Sans Symbols" },
{ alias="fantasy", family="Sans Symbols2" },
{ alias="fantasy", family="Sans Symbols",
fcconfexfile=rpm.expand('%{SOURCE5}')
},
{ alias="fantasy", family="Sans Symbols2",
fcconfexfile=rpm.expand('%{SOURCE6}')
},
{ alias="sans-serif", family="Looped Lao", lang={ "lo" }, nogroup=1,
obsoletes={ "sans-lao-looped" }
@ -418,7 +425,9 @@ local subpackages = {
{ alias="cursive", variable=true, family="Nastaliq Urdu", lang={ "ur" } },
{ alias="cursive", variable=true, family="Rashi Hebrew", lang={ "he" } },
{ alias="fantasy", variable=true, family="Sans Symbols" },
{ alias="fantasy", variable=true, family="Sans Symbols",
fcconfexfile=rpm.expand('%{SOURCE7}')
},
{ alias="sans-serif", variable=true, family="Looped Lao", lang={ "lo" }, nogroup=1,
obsoletes={ "sans-lao-looped-vf" }
@ -1066,6 +1075,10 @@ done
%changelog
* Fri Nov 25 2022 Akira TAGOH <tagoh@redhat.com> - 20201206-1.git0c78c8329-7
- Add an alias for Symbol font to Noto Sans Symbols/Symbols2.
Resolves: rhbz#2088665
* Thu Nov 24 2022 Akira TAGOH <tagoh@redhat.com> - 20201206-1.git0c78c8329-6
- Drop Noto Sans Display and Noto Serif Display fonts.
These fonts isn't shipped from upstream anymore.

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<match>
<test name="family">
<string>fantasy</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Sans Symbols</string>
</edit>
<edit name="fonthashint" mode="append">
<bool>false</bool>
</edit>
</match>
<match>
<test name="family">
<string>Symbol</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Sans Symbols</string>
</edit>
<edit name="fonthashint" mode="append">
<bool>false</bool>
</edit>
</match>
<alias>
<family>Noto Sans Symbols</family>
<default>
<family>fantasy</family>
</default>
</alias>
<alias>
<family>Noto Sans Symbols</family>
<default>
<family>Symbol</family>
</default>
</alias>
</fontconfig>

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<match>
<test name="family">
<string>fantasy</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Sans Symbols</string>
</edit>
<edit name="fonthashint" mode="append">
<bool>true</bool>
</edit>
</match>
<match>
<test name="family">
<string>Symbol</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Sans Symbols</string>
</edit>
<edit name="fonthashint" mode="append">
<bool>true</bool>
</edit>
</match>
<alias>
<family>Noto Sans Symbols</family>
<default>
<family>fantasy</family>
</default>
</alias>
<alias>
<family>Noto Sans Symbols</family>
<default>
<family>Symbol</family>
</default>
</alias>
</fontconfig>

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<match>
<test name="family">
<string>fantasy</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Sans Symbols2</string>
</edit>
<edit name="fonthashint" mode="append">
<bool>false</bool>
</edit>
</match>
<match>
<test name="family">
<string>Symbol</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Sans Symbols2</string>
</edit>
<edit name="fonthashint" mode="append">
<bool>false</bool>
</edit>
</match>
<alias>
<family>Noto Sans Symbols2</family>
<default>
<family>fantasy</family>
</default>
</alias>
<alias>
<family>Noto Sans Symbols2</family>
<default>
<family>Symbol</family>
</default>
</alias>
</fontconfig>