diff --git a/fix-arimo.patch b/fix-arimo.patch new file mode 100644 index 0000000..9da05ed --- /dev/null +++ b/fix-arimo.patch @@ -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 --> + + +- ++ + + + +@@ -90165,7 +90165,7 @@ + Arimo Bold + + +- Italic ++ Bold Italic + + + 1.33;GOOG;Arimo-BoldItalic +@@ -90206,9 +90206,6 @@ + + Arimo + +- +- Bold Italic +- + + + diff --git a/google-noto-fonts.changes b/google-noto-fonts.changes index 32892f2..46cdfcd 100644 --- a/google-noto-fonts.changes +++ b/google-noto-fonts.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 22 21:57:20 UTC 2022 - Gordon Leung + +fix: bsc#1202279 and gh#notofonts/Arimo#13 + ------------------------------------------------------------------- Sun Aug 21 23:34:14 UTC 2022 - Gordon Leung diff --git a/google-noto-fonts.spec b/google-noto-fonts.spec index 1c74921..c3e64a2 100644 --- a/google-noto-fonts.spec +++ b/google-noto-fonts.spec @@ -36,7 +36,9 @@ 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 @@ -2997,6 +2999,15 @@ TraditionalNushu font, hinted. %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 diff --git a/google-noto-fonts.spec.in b/google-noto-fonts.spec.in index 19befae..079c55c 100644 --- a/google-noto-fonts.spec.in +++ b/google-noto-fonts.spec.in @@ -36,7 +36,9 @@ 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 @@ -58,6 +60,15 @@ 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