Antoine Sirinelli schrieb:
I fully agree with you. My point was just to give a workaround while waiting
for the bug correction.

I have prepared a patch that changes the default font to LiberationSans-Regular in the GD terminal driver. I have tested it and it works well. I also added ttf-liberation to the recommended packages. Please find a proposed NMU attached.

Cheers,
Fabian

--
Dipl.-Phys. Fabian Greffrath

Ruhr-Universität Bochum
Lehrstuhl für Energieanlagen und Energieprozesstechnik (LEAT)
Universitätsstr. 150, IB 3/134
D-44780 Bochum

Telefon: +49 (0)234 / 32-26334
Fax:     +49 (0)234 / 32-14227
E-Mail:  greffr...@leat.ruhr-uni-bochum.de
diff -u gnuplot-4.2.5/debian/changelog gnuplot-4.2.5/debian/changelog
--- gnuplot-4.2.5/debian/changelog
+++ gnuplot-4.2.5/debian/changelog
@@ -1,3 +1,14 @@
+gnuplot (4.2.5-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/patches/05_default_gdfont.diff:
+    + New patch to set the default font to LiberationSans-Regular instead of
+      Arial for PNG and JPEG output in the GD terminal driver, closes: #524962.
+  * debian/control:
+    + Recommend ttf-liberation.
+
+ -- Fabian Greffrath <fab...@debian-unofficial.org>  Wed, 27 May 2009 09:09:32 +0200
+
 gnuplot (4.2.5-1) unstable; urgency=low
 
   * New upstream release.
diff -u gnuplot-4.2.5/debian/control gnuplot-4.2.5/debian/control
--- gnuplot-4.2.5/debian/control
+++ gnuplot-4.2.5/debian/control
@@ -29,7 +29,7 @@
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Replaces: gnuplot (<< 4.0.0)
-Recommends: groff
+Recommends: groff, ttf-liberation
 Suggests: gnuplot-x11 (>= ${binary:Version}), gnuplot-doc (>= ${source:Version})
 Description: A command-line driven interactive plotting program
  Gnuplot is a portable command-line driven interactive data and function
diff -u gnuplot-4.2.5/debian/patches/series gnuplot-4.2.5/debian/patches/series
--- gnuplot-4.2.5/debian/patches/series
+++ gnuplot-4.2.5/debian/patches/series
@@ -3,0 +4 @@
+05_default_gdfont.diff
only in patch2:
unchanged:
--- gnuplot-4.2.5.orig/debian/patches/05_default_gdfont.diff
+++ gnuplot-4.2.5/debian/patches/05_default_gdfont.diff
@@ -0,0 +1,11 @@
+--- gnuplot-4.2.5.orig/term/gd.trm
++++ gnuplot-4.2.5/term/gd.trm
+@@ -929,7 +929,7 @@
+ 	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 */
+-	    png_state.ttffont = gp_strdup("arial");
++	    png_state.ttffont = gp_strdup("/usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.ttf");
+ 
+ 	free(png_state.default_ttffont);
+ 	png_state.default_ttffont = gp_strdup(png_state.ttffont);

Reply via email to