mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
f2bff3d088
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.
5 lines
182 B
Bash
5 lines
182 B
Bash
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
|