report the error if we can't load the MM font
authorTony Cook <tony@develop=help.com>
Fri, 12 Nov 2010 23:28:02 +0000 (23:28 +0000)
committerTony Cook <tony@develop=help.com>
Fri, 12 Nov 2010 23:28:02 +0000 (23:28 +0000)
FT2/t/t10ft2.t

index e8546eb..5149571 100644 (file)
@@ -344,7 +344,8 @@ SKIP:
   print "# Try a multiple master font\n";
   my $mmfont = Imager::Font->new(file=>"fontfiles/MMOne.pfb", type=>"ft2", 
                                  color=>"white", aa=>1, size=>60);
-  ok($mmfont, "loaded MM font");
+  ok($mmfont, "loaded MM font")
+    or print "# ", Imager->errstr, "\n";
   ok($mmfont->is_mm, "font is multiple master");
   my @axes = $mmfont->mm_axes;
   is(@axes, 2, "check we got both axes");