diff --git a/gi-docgen-2022.2-no-web-fonts.patch b/gi-docgen-2022.2-no-web-fonts.patch index 996771f..90059eb 100644 --- a/gi-docgen-2022.2-no-web-fonts.patch +++ b/gi-docgen-2022.2-no-web-fonts.patch @@ -204,7 +204,7 @@ diff -Naur gi-docgen-2022.2-original/gidocgen/templates/basic/fonts.css gi-docge font-style: normal; font-weight: 400; - src: url("SourceCodePro-Regular.ttf.woff") format('woff'); -+ src: local('SourceCodePro-Regular'); ++ src: local('SourceCodePro-Regular'), local('monospace'); font-display: swap; } @@ -213,7 +213,7 @@ diff -Naur gi-docgen-2022.2-original/gidocgen/templates/basic/fonts.css gi-docge font-style: italic; font-weight: 400; - src: url("SourceCodePro-It.ttf.woff") format('woff'); -+ src: local('SourceCodePro-It'); ++ src: local('SourceCodePro-It'), local('monospace'); font-display: swap; } @@ -222,7 +222,7 @@ diff -Naur gi-docgen-2022.2-original/gidocgen/templates/basic/fonts.css gi-docge font-style: normal; font-weight: 600; - src: url("SourceCodePro-Semibold.ttf.woff") format('woff'); -+ src: local('SourceCodePro-Semibold'); ++ src: local('SourceCodePro-Semibold'), local('monospace'); font-display: swap; } diff -Naur gi-docgen-2022.2-original/setup.cfg gi-docgen-2022.2/setup.cfg diff --git a/gi-docgen.spec b/gi-docgen.spec index 1df4100..8e7cf35 100644 --- a/gi-docgen.spec +++ b/gi-docgen.spec @@ -92,7 +92,7 @@ Source: %{url}/-/archive/%{version}/gi-docgen-%{version}.tar.bz2 # # This patch removes all references to WOFF/WOFF2 font files (which we still # must remove in %%prep) and ensures the CSS correctly references corresponding -# local system fonts. +# or stand-in local system fonts. Patch: gi-docgen-2022.2-no-web-fonts.patch # https://gitlab.gnome.org/GNOME/gi-docgen/-/issues/179 @@ -117,10 +117,9 @@ BuildRequires: latexmk BuildRequires: font(redhatdisplay) BuildRequires: font(redhatdisplayblack) BuildRequires: font(redhatdisplaymedium) +BuildRequires: font(redhatmonovf) BuildRequires: font(redhattext) BuildRequires: font(redhattextmedium) -BuildRequires: font(sourcecodepro) -BuildRequires: font(sourcecodeprosemibold) # Unbundling fonts: Requires: gi-docgen-fonts = %{version}-%{release} @@ -164,10 +163,9 @@ License: Apache-2.0 OR GPL-3.0-or-later Requires: font(redhatdisplay) Requires: font(redhatdisplayblack) Requires: font(redhatdisplaymedium) +Requires: font(redhatmonovf) Requires: font(redhattext) Requires: font(redhattextmedium) -Requires: font(sourcecodepro) -Requires: font(sourcecodeprosemibold) %description fonts Because web fonts from upstream are not bundled in the gi-docgen package,