Skip Menu |

This queue is for tickets about the GraphViz2 CPAN distribution.

Report information
The Basics
Id: 87478
Status: resolved
Priority: 0/
Queue: GraphViz2

People
Owner: Nobody in particular
Requestors: djo [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.15
Fixed in: (no value)



Subject: Test scripts/Heawood.pl fails on OSX
Hi, The scripts/Heawood.pl test uses the font 'Arial', which on OSX is called "ArialMT" resulting in the following warning that makes the test fail. <pre> Client called CTFontCreateWithName() using name "Arial" and got font with PostScript name "ArialMT". For best performance, only use PostScript names when calling this API. </pre> The attached patch fixes this problem. -- Best regards, David Jack Olrik <david@olrik.dk> http://david.olrik.dk GnuPG fingerprint C290 0A4A 0CCC CBA8 2B37 E18D 01D2 F6EF 2E61 9894 ["The first rule of Perl club is You do not talk about Perl club"]
Subject: font_name_fix.patch
--- scripts/Heawood.pl.orig 2013-07-31 13:19:53.000000000 +0200 +++ scripts/Heawood.pl 2013-07-31 13:25:57.000000000 +0200 @@ -38,7 +38,7 @@ $graph -> default_edge(color => 'black'); $graph -> default_node ( - fontname => "Arial", + fontname => ( $^O eq 'darwin' ) ? "ArialMT" : "Arial", label => "\\N", shape => "circle", width => "0.50000",
Subject: Re: [rt.cpan.org #87478] Test scripts/Heawood.pl fails on OSX
Date: Thu, 01 Aug 2013 09:42:11 +1000
To: bug-GraphViz2 [...] rt.cpan.org
From: Ron Savage <ron [...] savage.net.au>
Hi David I've patched the code as you suggest. $many x $thanx; My policy on small patches like this is to not release a new version just for such a reason. That is, I'd wait until some vague number of patches accumulated, and then release. However, if you think it's important enough to have a CPAN-based version which does pass all tests under OSX, just let me know and I'll release it. Also, I loved the quotation, on your home page, by Stephen Henry Roberts. I'd never heard of him before, but it's clearly a well-thought-out statement. On 31/07/13 21:31, David Jack Olrik via RT wrote: Show quoted text
> Wed Jul 31 07:31:40 2013: Request 87478 was acted upon. > Transaction: Ticket created by DJO > Queue: GraphViz2 > Subject: Test scripts/Heawood.pl fails on OSX > Broken in: 2.15 > Severity: Important > Owner: Nobody > Requestors: djo@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=87478 > > > > Hi, > > The scripts/Heawood.pl test uses the font 'Arial', which on OSX is called "ArialMT" resulting in the following warning that makes the test fail. > > <pre> > Client called CTFontCreateWithName() using name "Arial" and got font with PostScript name "ArialMT". For best performance, only use PostScript names when calling this API. > </pre> > > The attached patch fixes this problem. >
-- Ron Savage http://savage.net.au/ Ph: 0421 920 622
Fix in V 2.16.