components/gnuplot/patches/arial.patch
author Rich Burridge <rich.burridge@oracle.com>
Wed, 05 Dec 2012 08:26:23 -0800
changeset 1071 cc3ecf7b3dec
parent 204 78dfe4707c7c
permissions -rw-r--r--
15959394 Several Userland components are using the wrong BugDB cat/subcat.

--- gnuplot-4.4.0/term/gd.trm.orig	Wed Feb 24 18:29:20 2010
+++ gnuplot-4.4.0/term/gd.trm	Mon Mar 28 16:41:55 2011
@@ -978,7 +978,11 @@
 	if (external_default)
 		png_state.ttffont = gp_strdup(external_default);
 	else	/* Might as well try some plausible font; it's no worse than failing immediately */
+#ifndef sun
 		png_state.ttffont = gp_strdup("arial");
+#else /* sun */
+		png_state.ttffont = gp_strdup("LiberationSans-Regular");
+#endif /* sun */
 
 	free(png_state.default_ttffont);
 	png_state.default_ttffont = gp_strdup(png_state.ttffont);