|
From: Ethan M. <merritt@u.washington.edu> - 2009-04-13 22:36:19
|
> Hello, > Some more findings... > > What i did: > export GDFONTPATH="/usr/share/fonts/truetype/msttcorefonts" > gnuplot> set term png font arial 12 > > gnuplot> set term png font arial 12 > Terminal type set to 'png' > Options are 'nocrop font arial 12 ' OK, so it works fine in gnuplot. That seems to indicate that both gnuplot and libgd are working fine. > When I try to create a graph gretl gives: > Could not find/open font when opening font "arial", using internal non- > scalable font Which suggests that gretl is running in a different environment and therefore doesn't see your GDFONTPATH. > Then I run gretl from command line to get more error messages and here is what > I have: > gnuplot: using libgd png driver > stderr: 'Could not find/open font when opening font "arial", using internal > non-scalable font > ' > gretl_errmsg: 'Could not find/open font when opening font "arial", using > internal non-scalable font > ' > Failed command: 'gnuplot "/home/snvv101/.gretl/gpttmp.hIR18b"' > > Finally, I do believe this should be a libgd problem? I don't think so. Your first test demonstrates that libgd is able to find the font correctly. Does gretl maybe scrub its environment on entry? > Any suggestion is welcome. > > Thank you. > snvv -- Ethan A Merritt |