Resolves #1321685 - Added Noto Mono font.

This commit is contained in:
Pravin Satpute 2016-11-07 14:34:34 +05:30
parent abeab05e81
commit 253bfda12c
10 changed files with 296 additions and 10 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@
/noto-762640379a51.zip /noto-762640379a51.zip
/noto-d47480343178.zip /noto-d47480343178.zip
/v2015-09-29-license-adobe.zip /v2015-09-29-license-adobe.zip
/noto-fonts-86b2e553c3e3e4d6614dadd1fa0a7a6dafd74552.zip

16
66-google-noto-mono.conf Normal file
View File

@ -0,0 +1,16 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Mono</family>
</prefer>
</alias>
<alias>
<family>Noto Mono</family>
<default>
<family>sans-serif</family>
</default>
</alias>
</fontconfig>

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<test name="lang" compare="contains">
<string>bn</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Serif Bengali</string>
</edit>
</match>
<alias>
<family>Noto Serif Bengali</family>
<default>
<family>serif</family>
</default>
</alias>
</fontconfig>

View File

@ -0,0 +1,130 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<test name="lang" compare="contains">
<string>hi</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Serif Devanagari</string>
</edit>
</match>
<match>
<test name="lang" compare="contains">
<string>mr</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Serif Devanagari</string>
</edit>
</match>
<match>
<test name="lang" compare="contains">
<string>kok</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Serif Devanagari</string>
</edit>
</match>
<match>
<test name="lang" compare="contains">
<string>ks@devanagari</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Serif Devanagari</string>
</edit>
</match>
<match>
<test name="lang" compare="contains">
<string>sd@devanagari</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Serif Devanagari</string>
</edit>
</match>
<match>
<test name="lang" compare="contains">
<string>mai</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Serif Devanagari</string>
</edit>
</match>
<match>
<test name="lang" compare="contains">
<string>ne</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Serif Devanagari</string>
</edit>
</match>
<match>
<test name="lang" compare="contains">
<string>brx</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Serif Devanagari</string>
</edit>
</match>
<match>
<test name="lang" compare="contains">
<string>doi</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Serif Devanagari</string>
</edit>
</match>
<match>
<test name="lang" compare="contains">
<string>sa</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Serif Devanagari</string>
</edit>
</match>
<alias>
<family>Noto Serif Devanagari</family>
<default>
<family>serif</family>
</default>
</alias>
</fontconfig>

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<test name="lang" compare="contains">
<string>kn</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Serif Kannada</string>
</edit>
</match>
<alias>
<family>Noto Serif Kannada</family>
<default>
<family>serif</family>
</default>
</alias>
</fontconfig>

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<test name="lang" compare="contains">
<string>ml</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Serif Malayalam</string>
</edit>
</match>
<alias>
<family>Noto Serif Malayalam</family>
<default>
<family>serif</family>
</default>
</alias>
</fontconfig>

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<test name="lang" compare="contains">
<string>ta</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Serif Tamil</string>
</edit>
</match>
<alias>
<family>Noto Serif Tamil</family>
<default>
<family>serif</family>
</default>
</alias>
</fontconfig>

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<test name="lang" compare="contains">
<string>te</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Serif Telugu</string>
</edit>
</match>
<alias>
<family>Noto Serif Telugu</family>
<default>
<family>serif</family>
</default>
</alias>
</fontconfig>

View File

@ -6,18 +6,18 @@ between multiple scripts. Noto family supports almost all scripts available\
in Unicode.\ in Unicode.\
%{nil} %{nil}
%global date 2015-09-29 %global commit 86b2e553c3e3e4d6614dadd1fa0a7a6dafd74552
Name: %{fontname}-fonts Name: %{fontname}-fonts
Version: 20150929 Version: 20161022
Release: 2%{?dist} Release: 1%{?dist}
Summary: Hinted and Non Hinted OpenType fonts for Unicode scripts Summary: Hinted and Non Hinted OpenType fonts for Unicode scripts
Group: User Interface/X Group: User Interface/X
License: ASL 2.0 License: OFL
URL: https://github.com/googlei18n/noto-fonts/ URL: https://github.com/googlei18n/noto-fonts/
# downloaded from https://code.google.com/p/noto/source/list -> download [zip] # downloaded from https://github.com/googlei18n/noto-fonts/tree/86b2e553c3e3e4d6614dadd1fa0a7a6dafd74552 -> download [zip]
# (NB the download [tar.gz] file seems to have broken headers) # link https://codeload.github.com/googlei18n/noto-fonts/zip/86b2e553c3e3e4d6614dadd1fa0a7a6dafd74552
Source0: https://github.com/googlei18n/noto-fonts/archive/v%{date}-license-adobe.zip Source0: noto-fonts-%{commit}.zip
Source2: %{fontconf}-sans.conf Source2: %{fontconf}-sans.conf
Source3: %{fontconf}-sans-armenian.conf Source3: %{fontconf}-sans-armenian.conf
Source4: %{fontconf}-sans-avestan.conf Source4: %{fontconf}-sans-avestan.conf
@ -130,6 +130,14 @@ Source156: %{fontconf}-sans-oriya.conf
Source157: %{fontconf}-sans-oriya-ui.conf Source157: %{fontconf}-sans-oriya-ui.conf
Source158: %{fontconf}-nastaliq-urdu.conf Source158: %{fontconf}-nastaliq-urdu.conf
Source159: %{fontconf}-sans-tibetan.conf Source159: %{fontconf}-sans-tibetan.conf
Source160: %{fontconf}-mono.conf
Source161: %{fontconf}-serif-bengali.conf
Source162: %{fontconf}-serif-devanagari.conf
Source163: %{fontconf}-serif-gujarati.conf
Source164: %{fontconf}-serif-kannada.conf
Source165: %{fontconf}-serif-malayalam.conf
Source166: %{fontconf}-serif-tamil.conf
Source167: %{fontconf}-serif-telugu.conf
# Add appstream metadata files # Add appstream metadata files
Source200: %{fontname}.metainfo.xml Source200: %{fontname}.metainfo.xml
@ -297,9 +305,18 @@ fi\
%notopkg Sans Oriya UI %notopkg Sans Oriya UI
%notopkg Sans Tibetan %notopkg Sans Tibetan
%notopkg Nastaliq Urdu %notopkg Nastaliq Urdu
%notopkg Mono
%notopkg Serif Bengali
%notopkg Serif Devanagari
%notopkg Serif Gujarati
%notopkg Serif Kannada
%notopkg Serif Malayalam
%notopkg Serif Tamil
%notopkg Serif Telugu
%prep %prep
%setup -q -n noto-fonts-2015-09-29-license-adobe %setup -q -n noto-fonts-86b2e553c3e3e4d6614dadd1fa0a7a6dafd74552
%build %build
@ -347,7 +364,9 @@ for f in \
sans-thaana sans-thai sans-thai-ui sans-tifinagh \ sans-thaana sans-thai sans-thai-ui sans-tifinagh \
sans-ugaritic sans-ui sans-vai sans-yi \ sans-ugaritic sans-ui sans-vai sans-yi \
serif serif-armenian serif-georgian serif-khmer serif-lao serif-thai \ serif serif-armenian serif-georgian serif-khmer serif-lao serif-thai \
sans-oriya sans-oriya-ui sans-tibetan nastaliq-urdu \ sans-oriya sans-oriya-ui sans-tibetan nastaliq-urdu mono \
serif-bengali serif-devanagari serif-gujarati serif-kannada \
serif-malayalam serif-tamil serif-telugu \
; do ; do
install -m 0644 -p %{_sourcedir}/%{fontconf}-$f.conf \ install -m 0644 -p %{_sourcedir}/%{fontconf}-$f.conf \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-$f.conf %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-$f.conf
@ -375,6 +394,12 @@ done
%changelog %changelog
* Mon Nov 07 2016 Pravin Satpute <psatpute@redhat.com> - 20161022-1
- Resolves #1321685 - Added Noto Mono font.
- License changed from ASL 2.0 to OFL.
- New package addition: Mono, Serif Bengali, Serif Devanagari
- Serif Gujarari, Serif Malayalam, Serif Tamil and Serif Telugu.
* Wed Aug 24 2016 Pravin Satpute <psatpute@redhat.com> - 20150929-2 * Wed Aug 24 2016 Pravin Satpute <psatpute@redhat.com> - 20150929-2
- Resolves #1368772 - Fixes issue with LICENSE file. - Resolves #1368772 - Fixes issue with LICENSE file.

View File

@ -1 +1 @@
4e0e7b5221b1bbf93731d85ee3396f89 v2015-09-29-license-adobe.zip c810adf3e1e0f7f837eeea34443f69b6 noto-fonts-86b2e553c3e3e4d6614dadd1fa0a7a6dafd74552.zip