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",