Sync from SUSE:SLFO:Main google-noto-fonts revision 797ce021587daffadf2649335a319ea9

This commit is contained in:
Adrian Schröter 2024-05-03 13:12:41 +02:00
commit bfc5ec1a22
10 changed files with 5428 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

94
LICENSE Normal file
View File

@ -0,0 +1,94 @@
Copyright 2018 The Noto Project Authors (github.com/googlei18n/noto-fonts)
This Font Software is licensed under the SIL Open Font License,
Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font
creation efforts of academic and linguistic communities, and to
provide a free and open framework in which fonts may be shared and
improved in partnership with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply to
any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software
components as distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to,
deleting, or substituting -- in part or in whole -- any of the
components of the Original Version, by changing formats or by porting
the Font Software to a new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed,
modify, redistribute, and sell modified and unmodified copies of the
Font Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components, in
Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the
corresponding Copyright Holder. This restriction only applies to the
primary font name as presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created using
the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

15
README.FAQ Normal file
View File

@ -0,0 +1,15 @@
FAQ by Gordon Leung <pirateclip@protonmail.com>
Last reviewed: 2022-08-22
Q: Why are there so many Noto packages?
A: Each Noto Font family is individually packaged to allow the user to pick and
choose which font(s) they need. If we instead shoved them all into a single
package, then we would get situations such as KDE Plasma pulling in many MBs
worth of font files as KDE Plasma uses Noto Sans as their default font.
Q: Why do the packages take up so much space?
A: We currently package the most space inefficient font format provided by
Google which are Hinted TTFs. We have tried switching to more space efficient
formats such as Unhinted OTFs, but that made the fonts ugly on low dpi
monitors. If you or someone you know can help with transitioning us to a more
space efficient format please let me know.

7
_constraints Normal file
View File

@ -0,0 +1,7 @@
<constraints>
<hardware>
<disk>
<size unit="G">7</size>
</disk>
</hardware>
</constraints>

30
fix-arimo.patch Normal file
View File

@ -0,0 +1,30 @@
--- ttf/Arimo/Arimo-BoldItalic.ttx 2022-08-22 15:32:43.920829321 -0600
+++ ttf-patched/Arimo/Arimo-BoldItalic.ttx 2022-08-22 15:35:08.020159973 -0600
@@ -3373,7 +3373,7 @@
will be recalculated by the compiler -->
<version value="4"/>
<xAvgCharWidth value="1248"/>
- <usWeightClass value="400"/>
+ <usWeightClass value="700"/>
<usWidthClass value="5"/>
<fsType value="00000000 00000000"/>
<ySubscriptXSize value="1331"/>
@@ -90165,7 +90165,7 @@
Arimo Bold
</namerecord>
<namerecord nameID="2" platformID="3" platEncID="1" langID="0x409">
- Italic
+ Bold Italic
</namerecord>
<namerecord nameID="3" platformID="3" platEncID="1" langID="0x409">
1.33;GOOG;Arimo-BoldItalic
@@ -90206,9 +90206,6 @@
<namerecord nameID="16" platformID="3" platEncID="1" langID="0x409">
Arimo
</namerecord>
- <namerecord nameID="17" platformID="3" platEncID="1" langID="0x409">
- Bold Italic
- </namerecord>
</name>
<post>

View File

@ -0,0 +1,89 @@
#!/bin/bash
pkg_name="google-noto-fonts"
font_dir="ttf"
# Get only the hinted fonts
svn checkout https://github.com/googlefonts/noto-fonts/trunk/hinted/$font_dir
tar -cvzf $font_dir.tar.gz $font_dir/[!\.]*
cp -f $pkg_name.spec.in $pkg_name.spec
ls $font_dir/ | sed -e 's:Noto::' -e 's:-.*\..tf::' -e 's:\..tf::' -e 's:\.ttc::' | sort -f | uniq | while read font; do
ui=`(echo $font | grep -q UI) && echo UI`
font=${font%%$ui}
serif=`echo $font | sed 's:\(Sans\|Serif\).*:\1:'`
script=`echo $font | sed "s:$serif\(.*\):\1:"`
packagename="noto-$serif"
if [ ! -z $script ]; then
packagename="$packagename-$script"
fi
if [ ! -z $ui ]; then
packagename="$packagename-$ui"
fi
packagename=`echo "$packagename" | tr [A-Z] [a-z]`
# NotoSansDisplay is already provided by NotoSans
# Also they have inconsistent family names: https://github.com/googlefonts/noto-fonts/issues/2315
if [ $packagename == "noto-sans-display" ]; then
continue
fi
if [ $serif == "Sans" ]; then
serif_dsc="Sans Serif "
else
serif_dsc="Serif "
fi
if [ $packagename == "noto-sans" ]; then
OBSOLETES=($packagename 'noto-sans-display' 'noto-sans-display-fonts')
elif [ $packagename == "noto-serif-tibetan" ]; then
OBSOLETES=($packagename 'noto-sans-tibetan' 'noto-sans-tibetan-fonts')
elif [ $packagename == "noto-sans-syriac" ]; then
OBSOLETES=($packagename 'noto-sans-syriacwestern' 'noto-sans-syriacwestern-fonts' 'noto-sans-syriacestrangela' 'noto-sans-syriacestrangela-fonts' 'noto-sans-syriaceastern' 'noto-sans-syriaceastern-fonts')
elif [ $packagename == "noto-sans-mono" ]; then
OBSOLETES=($packagename 'noto-mono' 'noto-mono-fonts')
elif [ $packagename == "noto-arimo" ] || [ $packagename == "noto-cousine" ] || [ $packagename == "noto-tinos" ]; then
OBSOLETES=($packagename `echo "google-$serif-fonts" | tr [A-Z] [a-z]`)
else
OBSOLETES=($packagename)
fi
packagename="$packagename-fonts"
if [ ! -z "$script" ]; then
summary=`echo "Noto $script ${serif_dsc}Font" | sed 's:\([a-z]\)\([A-Z]\):\1 \2:g'`
else
summary=`echo "Noto $serif Font" | sed 's:\([a-z]\)\([A-Z]\):\1 \2:g'`
fi
sed -i "s/@LIST_OF_SUBPACKAGES@/Requires: $packagename\n@LIST_OF_SUBPACKAGES@/" $pkg_name.spec
sed -i "s/@SUBPACKAGE_HEADERS@/%package -n $packagename\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
sed -i "s/@SUBPACKAGE_HEADERS@/Summary: $summary\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
sed -i "s;@SUBPACKAGE_HEADERS@;Group: System/X11/Fonts\n@SUBPACKAGE_HEADERS@;" $pkg_name.spec
for i in "${OBSOLETES[@]}" ; do
sed -i "s/@SUBPACKAGE_HEADERS@/Obsoletes: $i < %{version}\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
sed -i "s/@SUBPACKAGE_HEADERS@/Provides: $i = %{version}\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
done
sed -i "s/@SUBPACKAGE_HEADERS@/%reconfigure_fonts_prereq\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
sed -i "s/@SUBPACKAGE_HEADERS@/\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
sed -i "s/@SUBPACKAGE_HEADERS@/%description -n $packagename\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
sed -i "s/@SUBPACKAGE_HEADERS@/Noto's design goal is to achieve visual harmonization (e.g., compatible\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
sed -i "s/@SUBPACKAGE_HEADERS@/heights and stroke thicknesses) across languages. This package contains\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
if [ ! -z "$script" ]; then
sed -i "s/@SUBPACKAGE_HEADERS@/$script ${serif_dsc}font, hinted.\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
else
sed -i "s/@SUBPACKAGE_HEADERS@/$serif font, hinted.\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
fi
sed -i "s/@SUBPACKAGE_HEADERS@/\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
sed -i "s/@SUBPACKAGE_SCRIPTLETS@/%reconfigure_fonts_scriptlets -n $packagename\n\n@SUBPACKAGE_SCRIPTLETS@/" $pkg_name.spec
sed -i "s/@SUBPACKAGE_FILELISTS@/%files -n $packagename\n@SUBPACKAGE_FILELISTS@/" $pkg_name.spec
sed -i "s/@SUBPACKAGE_FILELISTS@/%defattr(0644,root,root,755)\n@SUBPACKAGE_FILELISTS@/" $pkg_name.spec
sed -i "s/@SUBPACKAGE_FILELISTS@/%license LICENSE\n@SUBPACKAGE_FILELISTS@/" $pkg_name.spec
sed -i "s/@SUBPACKAGE_FILELISTS@/%dir %{_ttfontsdir}\n@SUBPACKAGE_FILELISTS@/" $pkg_name.spec
if [ $serif == "Arimo" ] || [ $serif == "Cousine" ] || [ $serif == "Tinos" ]; then
sed -i "s:@SUBPACKAGE_FILELISTS@:%{_ttfontsdir}/$serif$script$ui-\*.?tf\n@SUBPACKAGE_FILELISTS@:" $pkg_name.spec
else
sed -i "s:@SUBPACKAGE_FILELISTS@:%{_ttfontsdir}/Noto$serif$script$ui-\*.?tf\n@SUBPACKAGE_FILELISTS@:" $pkg_name.spec
fi
sed -i "s/@SUBPACKAGE_FILELISTS@/\n@SUBPACKAGE_FILELISTS@/" $pkg_name.spec
done
sed -i 's/@LIST_OF_SUBPACKAGES@//' $pkg_name.spec
sed -i 's/@SUBPACKAGE_HEADERS@//' $pkg_name.spec
sed -i 's/@SUBPACKAGE_SCRIPTLETS@//' $pkg_name.spec
sed -i 's/@SUBPACKAGE_FILELISTS@//' $pkg_name.spec

254
google-noto-fonts.changes Normal file
View File

@ -0,0 +1,254 @@
-------------------------------------------------------------------
Mon Aug 22 21:57:20 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
fix: bsc#1202279 and gh#notofonts/Arimo#13
- fix-arimo.patch
-------------------------------------------------------------------
Sun Aug 21 23:34:14 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
fix: summary and descriptions not mentioning font being Serif
add: README.FAQ to answer some questions about Noto Fonts packaging
-------------------------------------------------------------------
Wed Jun 15 06:57:10 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
feat: create new metapackage noto-fonts with all Noto Fonts except CJK and Emoji
-------------------------------------------------------------------
Sun Jun 12 22:29:40 UTC 2022 - Gordon Leung <pirateclip@protonmail.com> - 20220607
update: 20220524 -> 20220607
- Noto Sans and Noto Sans Myanmar have been updated
fix(spec): add LICENSE to every package, remove redundant doc package
- It is likely a legal requirement that the license must be included with the package (rather than only recommends)
- Using the %license macro and including the license in every subpackage is the norm
fix(sh): prevent redundant .svn files from being compressed into archive
chore(spec): use install instead of mkdir and cp
chore(sh): fix typo
-------------------------------------------------------------------
Wed Jun 1 08:43:48 UTC 2022 - Bruno Pitrus <brunopitrus@hotmail.com>
- Add obsoletes and provides for google-{arimo,cousine,tinos}-fonts
-------------------------------------------------------------------
Thu May 26 23:07:18 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
- Switch back to hinted ttf as unhinted otf causes blurring (boo#1199938)
-------------------------------------------------------------------
Tue May 24 23:19:22 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
- Add obsoletes and provides for:
- noto-mono-fonts: Got merged into noto-sans-mono-fonts
- noto-sans-syriac* variants: Got merged into noto-sans-syriac-fonts
- noto-sans-tibetan-fonts: Got renamed to noto-serif-tibetan-fonts
- Update to version 20220524
- Updated Noto Sans Myanmar and Noto Sans Tangsa Fonts
-------------------------------------------------------------------
Thu May 19 15:10:51 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
- Clarify sources
-------------------------------------------------------------------
Tue May 17 16:47:27 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
- Fix unversioned obsoletes
- Merge noto-sans-display-fonts into noto-sans-fonts
- Fixes inconsistent font family names see Github issue #2315
- Bump version to 20220516
- Start using OTF fonts to be in-line with Noto CJK and Emoji
- No new fonts
-------------------------------------------------------------------
Sat May 14 06:51:21 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
- Update URL and source for zips
- Update to version 20220509
- 96 new fonts, details at https://pastebin.com/ycnpAn88
-------------------------------------------------------------------
Mon Jun 3 15:46:48 UTC 2019 - Fuminobu Takeyama <ftake@geeko.jp>
- Separate Noto Color Emoji and Noto Emoji fonts into a new project
due to their different release cycle
- Fix the direct changes to spec file at the previous commit
-------------------------------------------------------------------
Sat Mar 23 15:31:14 UTC 2019 - Markus S <kamikazow@opensuse.org>
- Changed dependecy status of doc sub-package from Required to
Recommended because fonts load just fine without it.
-------------------------------------------------------------------
Mon Feb 12 09:21:29 UTC 2018 - coolo@suse.com
- increase required disk space to 7GB as rpmlint check fails on
workers with 6 (bsc#1080547)
-------------------------------------------------------------------
Thu Nov 2 19:52:11 UTC 2017 - kah0922@gmail.com
- update to version 20170919
- new: Adlam Sans Serif Font
- new: Adlam Unjoined Sans Serif Font
- new: Anatolian Hieroglyphs Sans Serif Font
- new: Arabic Sans Serif Font
- new: Chakma Sans Serif Font
- new: Display Sans Serif Font
- new: Osage Sans Serif Font
-------------------------------------------------------------------
Sat Apr 8 05:18:08 UTC 2017 - i@marguerite.su
- remove CJK from google-noto-fonts. they follow a different release
schedule and they need to be handled separately
-------------------------------------------------------------------
Tue Feb 28 16:22:22 UTC 2017 - hpj@urpla.net
- update to version 20161025
- new: Mono Font
- new: Naskh Arabic Font
- new: Bengali Sans Serif Font
- new: Devanagari Sans Serif Font
- new: Gujarati Sans Serif Font
- new: Gurmukhi Sans Serif Font
- new: Kannada Sans Serif Font
- new: Khmer Sans Serif Font
- new: Lao Sans Serif Font
- new: Malayalam Sans Serif Font
- new: Myanmar Sans Serif Font
- new: Oriya Sans Serif Font
- new: Tamil Sans Serif Font
- new: Telugu Sans Serif Font
- new: Thai Sans Serif Font
- new: Sans UI Font
- new: Bengali Font
- new: Devanagari Font
- new: Gujarati Font
- new: Kannada Font
- new: Malayalam Font
- new: Tamil Font
- new: Telugu Font
- fix generate-specfile.sh:
- handle UI fonts, that do not start with Sans ot Serif
- fix description of fonts, that do not start with Sans ot Serif
- flag sans fonts only, that really deserve it
-------------------------------------------------------------------
Sun Sep 11 07:59:49 UTC 2016 - ftake@geeko.jp
- move 59-noto-sans-cjk.conf into fonts-config (boo#998301)
to prevent an independent font package from changing family
preferences list
- Enable case-insensitive sort and regenerate the spec file
-------------------------------------------------------------------
Sun Apr 3 14:22:24 UTC 2016 - i@marguerite.su
- rename 52-noto-sans-cjk.conf to 59-noto-sans-cjk.conf.
- get rid of sub-pixel rendering settings.
-------------------------------------------------------------------
Fri Mar 25 11:23:25 UTC 2016 - i@marguerite.su
- add 52-noto-sans-cjk.conf, fix boo#972664 "Noto Sans CJK:
Chinese are using Japanese Glyphs".
- add scalable-font-XXX provides to noto-sans-cjk-fonts package
- add locale() to noto-sans-cjk-fonts package, set it as default
font for Chinese.
-------------------------------------------------------------------
Wed Mar 9 14:22:02 UTC 2016 - fcrozat@suse.com
- Add NotoSansCJK.ttc.zip and ship all CJK fonts in a single ttc
file and an single subpackage, this will save a lot of disk
space.
- Specify file permissions in defattr, some zip files are shipping
files with incorrect permissions.
-------------------------------------------------------------------
Fri Jan 8 12:56:45 UTC 2016 - i@marguerite.su
- add _constraints, need at least 4.5GB disk space
-------------------------------------------------------------------
Tue Jan 5 10:34:16 UTC 2016 - fcrozat@suse.com
- Ensure reconfigure_fonts_prereq macro is used for all subpackages
(spotted by Takashi Iwai).
-------------------------------------------------------------------
Tue Dec 22 14:13:56 UTC 2015 - fcrozat@suse.com
- Update to version 20151215:
* Color Emoji are now available in a subpackage.
* Update TaiTham to v1.03
* Update Coptic to v1.03
* Update Tifinagh to v1.05
* Update Thaana to v1.02
* Update Arimo and Tinos to v1.32
* Update Khmer to v1.03
* Update Javanese to v1.05
* Update Lepcha to v1.03
* Update Lao to v1.02
* Update KufiArabic to v1.04
- Update source url.
-------------------------------------------------------------------
Wed Nov 25 09:39:21 UTC 2015 - pgajdos@suse.com
- subpackage layout reworked
-------------------------------------------------------------------
Thu Oct 8 14:11:43 UTC 2015 - fcrozat@suse.com
- Update to version 2015102:
+ All fonts are now under OFL-1.1 license
+ New variants: Emoji, Nastaliq Urdu, Mono CJK
- Adapt generate-specfile.sh and template to not fail if there is
no draft font.
-------------------------------------------------------------------
Wed Aug 26 09:49:02 UTC 2015 - fcrozat@suse.com
- update to version 20150618:
+ Noto CJK variants
+ Thaana Sans, Tibetan variants.
+ update generate-specfile.sh
+ update url.
-------------------------------------------------------------------
Wed May 27 09:43:39 UTC 2015 - aj@ajaissle.de
- Fix rpm group classification (X11/Font -> X11/Fonts)
-------------------------------------------------------------------
Mon Feb 16 09:57:36 UTC 2015 - i@marguerite.su
- set Noto Sans S/T Chinese as default Chinese font
-------------------------------------------------------------------
Mon Sep 1 12:31:50 UTC 2014 - ftake@geeko.jp
- updated to version 20140716
+ Noto Sans S Chinese, T Chinese, Japanese, Korean are released
+ *-ui fonts are removed
- update generate-specfile.sh
-------------------------------------------------------------------
Tue Oct 29 10:12:48 UTC 2013 - pgajdos@suse.com
- split fonts in subpackages
- generate-specfile.sh created
-------------------------------------------------------------------
Fri Oct 25 11:48:41 UTC 2013 - pgajdos@suse.com
- package created, version 20130418

4821
google-noto-fonts.spec Normal file

File diff suppressed because it is too large Load Diff

92
google-noto-fonts.spec.in Normal file
View File

@ -0,0 +1,92 @@
#
# spec file for package google-noto-fonts
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define hyear 2022
%define hmonth 06
%define hday 07
%define src_name NotoFonts
# DO NOT EDIT THIS SPECFILE DIRECTLY, edit google-noto-fonts.spec.in and run generate-fonts-and-specfile.sh script
Name: google-noto-fonts
Version: %{hyear}%{hmonth}%{hday}
Release: 0
Summary: Noto Font Families
License: OFL-1.1
Group: System/X11/Fonts
URL: https://github.com/googlefonts/noto-fonts
# Generate Source0 via generate-fonts-and-specfile.sh
Source0: ttf.tar.gz
Source1: generate-fonts-and-specfile.sh
Source2: LICENSE
Source3: README.FAQ
Patch0: fix-arimo.patch
BuildRequires: fontpackages-devel
BuildRequires: fonttools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Noto's design goal is to achieve visual harmonization (e.g., compatible heights and stroke
thicknesses) across languages.
%package -n noto-fonts
Summary: All Noto Fonts except CJK and Emoji
Group: System/X11/Fonts
@LIST_OF_SUBPACKAGES@
%description -n noto-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
most noto fonts except for CJK and Emoji.
@SUBPACKAGE_HEADERS@
%prep
tar -xzf %{SOURCE0} -C .
# Arimo BoldItalic has an extra "Italic" style
# https://bugzilla.suse.com/show_bug.cgi?id=1202279 and https://github.com/notofonts/Arimo/issues/14
# Fix weight too https://github.com/notofonts/Arimo/issues/13
ttx ttf/Arimo/Arimo-BoldItalic.ttf
%patch0
ttx -f ttf/Arimo/Arimo-BoldItalic.ttx
rm ttf/Arimo/Arimo-BoldItalic.ttx
cp %{SOURCE2} .
%build
%install
# Tifinagh fonts have duplicates in NotoSansTifinagh folder
# https://github.com/googlefonts/noto-fonts/issues/2177 and https://github.com/googlefonts/noto-fonts/issues/2326
rm ttf/NotoSansTifinagh/NotoSansTifinagh[!\-]*
# NotoSansDisplay is already provided by NotoSans
# Also they have inconsistent family names: https://github.com/googlefonts/noto-fonts/issues/2315
rm -r ttf/NotoSansDisplay/
install -Dm 644 -t %{buildroot}%{_ttfontsdir} ttf/*/*.ttf
@SUBPACKAGE_SCRIPTLETS@
%files -n noto-fonts
%defattr(0644,root,root,755)
@SUBPACKAGE_FILELISTS@
%changelog

BIN
ttf.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.