Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
1ac21dffac add patch for pango 1.48.3 2021-03-23 23:53:41 +01:00
2 changed files with 29 additions and 1 deletions

View file

@ -0,0 +1,24 @@
diff --git a/weasyprint/fonts.py b/weasyprint/fonts.py
index d67d59c..2245fb2 100644
--- a/weasyprint/fonts.py
+++ b/weasyprint/fonts.py
@@ -118,6 +118,7 @@ else:
void pango_fc_font_map_set_config (
PangoFcFontMap *fcfontmap, FcConfig *fcconfig);
void pango_fc_font_map_shutdown (PangoFcFontMap *fcfontmap);
+ void pango_fc_font_map_config_changed (PangoFcFontMap *fcfontmap);
// PangoCairo
@@ -426,9 +427,8 @@ else:
if font_added:
# TODO: We should mask local fonts with the same name
# too as explained in Behdad's blog entry.
- # TODO: What about pango_fc_font_map_config_changed()
- # as suggested in Behdad's blog entry?
- # Though it seems to work without…
+ pangoft2.pango_fc_font_map_config_changed(
+ ffi.cast('PangoFcFontMap *', self.font_map))
return filename
else:
LOGGER.debug('Failed to load font at "%s"', url)

View file

@ -3,13 +3,14 @@
Name: weasyprint
Version: 51
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Utility to render HTML and CSS to PDF
License: BSD
URL: https://weasyprint.org/
Source0: %pypi_source
Patch0: %{name}-disable-flake8-isort-for-pytest.patch
Patch1: %{name}-fix-pango-1-48-3.patch
BuildArch: noarch
@ -102,6 +103,9 @@ rm -rf %{buildroot}%{python3_sitelib}/%{modname}/tests
%{python3_sitelib}/%{modname}/
%changelog
* Tue Mar 23 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 51-6
- add patch for pango 1.48.3
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 51-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild