Bug#1115579: trixie-pu: package fpdf2/2.8.3-1+deb13u1
Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: fpdf2@packages.debian.org
Control: affects -1 + src:fpdf2
User: release.debian.org@packages.debian.org
Usertags: pu
[ Reason ]
This upload would fix #1110990 python3-fpdf: KeyError when loading
variable fonts ( https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1110990 ),
introduced in the latest upstream version, the first to enter a Debian
stable release.
[ Impact ]
Without this update, users would not be able to use variable fonts with
fpdf2 or any 3rd party software using it (afaik there are no reverse
dependencies already in Debian).
[ Tests ]
The package runs most upstream unittests at build time and as
autopkgtests, and I've manually run piuparts on the proposed package.
I've also sent the proposed package to the submitter of #1110990 for
further manual tests and they were happy with it.
[ Risks ]
The proposed change is the backport of a one-line change from upstream.
[ Checklist ]
[x] *all* changes are documented in the d/changelog
[x] I reviewed all changes and I approve them
[x] attach debdiff against the package in (old)stable
[x] the issue is verified as fixed in unstable
[ Changes ]
The changes removes “fvar” from the list of unused tables dropped from
fonts when loading them, because it was not actually unused.
Thanks in advance,
diff -Nru fpdf2-2.8.3/debian/changelog fpdf2-2.8.3/debian/changelog
--- fpdf2-2.8.3/debian/changelog 2025-05-06 10:38:52.000000000 +0200
+++ fpdf2-2.8.3/debian/changelog 2025-08-21 11:50:07.000000000 +0200
@@ -1,3 +1,10 @@
+fpdf2 (2.8.3-1+deb13u1) trixie; urgency=medium
+
+ * Stop wrongly removing fvar table, allowing again the use of fpdf2 with
+ variable fonts. (Closes: 1110990)
+
+ -- Elena Grandi <valhalla@debian.org> Thu, 21 Aug 2025 11:50:07 +0200
+
fpdf2 (2.8.3-1) unstable; urgency=medium
* New upstream release
diff -Nru fpdf2-2.8.3/debian/patches/0010-Fix-wrongly-removing-fvar-table.patch fpdf2-2.8.3/debian/patches/0010-Fix-wrongly-removing-fvar-table.patch
--- fpdf2-2.8.3/debian/patches/0010-Fix-wrongly-removing-fvar-table.patch 1970-01-01 01:00:00.000000000 +0100
+++ fpdf2-2.8.3/debian/patches/0010-Fix-wrongly-removing-fvar-table.patch 2025-08-21 11:50:07.000000000 +0200
@@ -0,0 +1,23 @@
+From: Elena ``of Valhalla'' Grandi <valhalla@debian.org>
+Date: Thu, 21 Aug 2025 11:46:43 +0200
+Subject: Fix wrongly removing fvar table
+
+Origin: upstream, https://github.com/py-pdf/fpdf2/pull/1529/commits/7884fedff84f91694ef0c9cf53e396a5dc7e9ba9
+Bug: https://github.com/py-pdf/fpdf2/issues/1528
+
+---
+ fpdf/output.py | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/fpdf/output.py b/fpdf/output.py
+index d024414..5051121 100644
+--- a/fpdf/output.py
++++ b/fpdf/output.py
+@@ -818,7 +818,6 @@ class OutputProducer:
+ "SVG ", # SVG table
+ "CPAL", # Color Palette table
+ "COLR", # Color table
+- "fvar", # Font Variations table
+ ]
+ subsetter = ftsubset.Subsetter(options)
+ subsetter.populate(glyphs=glyph_names)
diff -Nru fpdf2-2.8.3/debian/patches/series fpdf2-2.8.3/debian/patches/series
--- fpdf2-2.8.3/debian/patches/series 2025-05-06 10:38:52.000000000 +0200
+++ fpdf2-2.8.3/debian/patches/series 2025-08-21 11:50:07.000000000 +0200
@@ -7,3 +7,4 @@
0007-Allow-a-test-to-run-on-different-pytest-versions.patch
0008-Ignore-a-spurious-ResourceWarning-in-one-of-the-test.patch
0010-Temporarily-skip-a-pdfa-test.patch
+0010-Fix-wrongly-removing-fvar-table.patch
Reply to: