1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Description: use Debian's variant of Dustismo.ttf
The source code comes with a copy of the font for demonstration and testing
purpose, but these components are not available during autopkgtest. This patch
will use the variant available in Debian instead.
Author: Étienne Mollier <etienne.mollier@mailoo.org>
Forwarded: not-needed
Last-Update: 2021-01-21
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- libgd-text-perl.orig/t/lib.pl
+++ libgd-text-perl/t/lib.pl
@@ -1,6 +1,13 @@
# allow a 2 pixel difference between the values in array ref 1 and array
# ref 2
+# pull Dustismo_Sans from the Debian package fonts-dustin
+use File::Copy;
+use File::Path qw(make_path);
+copy("/usr/share/fonts/truetype/dustin/Dustismo.ttf", "./Dustismo_Sans.ttf")
+ or die "copy failed: $!";
+make_path('demo');
+
eval { local $SIG{'__WARN__'}; require Test::More };
if ($@)
{
|