mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 04:25:14 +00:00

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
|