From: Ethan M. <eam...@gm...> - 2015-04-16 23:11:30
|
On Thu, Apr 16, 2015 at 3:05 PM, Jon <dev...@gm...> wrote: > could you please give me your configure file relevant to gnuplot? > > What I am using are copied from online as > > export GDFONTPATH=/usr/share/fonts/liberation > export GNUPLOT_DEFAULT_GDFONT=LiberationSans-Regular > > which does exist under the specific directory but obviously not perfect. How > to check whether these are compatible with my current version of gnuplot? > > Thanks, > > > > On Thu, Apr 16, 2015 at 4:18 PM, Ethan Merritt <eam...@gm...> wrote: >> >> I do not know why/how your system is [mis]configured so that it does >> not find fonts by default, but you can use the environmental variable >> GDFONTPATH to give libgd a new list of directories to use for font >> lookup. Of course it will only find fonts that are actually present >> in those directories. I don't think the gnuplot version is relevant here. The only thing that matters is libgd. I think that all versions of libgd will accept a font by path and filename (as you show in your export commands above). libgd versions newer than (I think) 2.0.35 will also accept a font specified by its face name, in which case the system fontconfig utility is used to search for it. In either case gnuplot just passes through the requested font name and size to libgd; it doesn't do any font management by itself. It is in principle possible to have a copy of libgd that doesn't support TrueType or OpenType fonts, but I haven't seen such a thing since last century. This is tested at the time gnuplot is configured and the result is indicated by defining (or not) the symbol HAVE_GD_TTF in file config.h. You can also check this from inside gnuplot by typing "show version long" and looking for the string "+GD_TTF". |