gnuplot: configure GDFONTPATH using 'fontconfig'

This patch adds a wrapper script around gnuplot that uses fontconfig's
fc-list(1) utility to determine the set of available fonts and makes that list
available to Gnuplot in the $GDFONTPATH variable.
This commit is contained in:
Peter Simons
2013-02-18 00:00:48 +01:00
parent 7e539f9636
commit f2bff3d088
2 changed files with 19 additions and 4 deletions
@@ -0,0 +1,4 @@
p=( $(for n in $(fc-list | sed -r -e 's|^([^:]+):.*$|\1|'); do echo $(dirname "$n"); done | sort | uniq) )
IFS=:
export GDFONTPATH="${GDFONTPATH}${GDFONTPATH:+:}${p[*]}"
unset IFS p