|
From: Jon <dev...@gm...> - 2010-11-12 19:09:10
|
Hello Guys, I tried to generate png file. I firstly tried convert aaa.eps -resize 640 480 aaa.png outside gnuplot, but the plot is smeared out due to magnification. So, I tried to generate png file within gnuplot using set term png, but it complains gdImageStringFT: Could not find/open font while printing string Experiment with font Times-Roman gdImageStringFT: Could not find/open font while printing string Experiment with font Times-Roman gdImageStringFT: Could not find/open font while printing string Calculation with font Times-Roman gdImageStringFT: Could not find/open font while printing string Calculation with font Times-Roman ... I did some google search and found that it could be that png cannot find the required path to the font, so I included the path as the following, set term png font "/home/.../fmaker55/fminit/fontdir/Times-Roman.pfa" 12 enhanced this is the only Times-Roman file I can find in the computer with ttf or pfa surrfix. But it still complains the same thing. Any idea to help me solve the png generation problem? Thanks a lot! Sincerely, Jon |
|
From: Tatsuro M. <tma...@ya...> - 2010-11-15 01:49:59
|
Hello What version gnuplot are you using now? Which platform are you using ? The png terminal depends on the libgd. >From version 4.4 of gnuplot, - External support library libgd version 2.0.36 introduces a new method of font selection using the fontconfig utitily. We try to automatically accommodate this, but it has not been extensively tested. Anyway, for the traditional style font selection (before 4.4), please read help gd The environmental variable GDFONTPATH is important. For the font selection via fontconfig are also used for the wxt, pngcairo, and pdfcairo. The existence and location of etc/fonts/fonts.conf is important. --- Jon wrote: > Hello Guys, > > I tried to generate png file. I firstly tried > > convert aaa.eps -resize 640 480 aaa.png > > outside gnuplot, but the plot is smeared out due to magnification. > > So, I tried to generate png file within gnuplot using set term png, but it > complains > > gdImageStringFT: Could not find/open font while printing string Experiment > with font Times-Roman > gdImageStringFT: Could not find/open font while printing string Experiment > with font Times-Roman > gdImageStringFT: Could not find/open font while printing string Calculation > with font Times-Roman > gdImageStringFT: Could not find/open font while printing string Calculation > with font Times-Roman > ... > > I did some google search and found that it could be that png cannot find the > required path to the font, so I included the path as the following, > > set term png font "/home/.../fmaker55/fminit/fontdir/Times-Roman.pfa" 12 > enhanced > > this is the only Times-Roman file I can find in the computer with ttf or pfa > surrfix. > > But it still complains the same thing. > > Any idea to help me solve the png generation problem? > > Thanks a lot! > > Sincerely, > Jon > ------------------------------------------------------------------------------ > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > -------------------------------------- Get the new Internet Explorer 8 optimized for Yahoo! JAPAN http://pr.mail.yahoo.co.jp/ie8/ |
|
From: Julien R. <jr...@ph...> - 2010-11-12 19:35:19
|
On 12/11/2010 2:09 PM, Jon wrote: > convert aaa.eps -resize 640 480 aaa.png > > outside gnuplot, but the plot is smeared out due to magnification. > use an higher density of pixels for rasterizing, and more output pixels: convert -density 1000 -resize 3200x2400 aaa.eps aaa.png but best to leave out the -resize part and just tweak the correct number for -density for the desired output size. Cheers, Julien |
|
From: Jon <dev...@gm...> - 2010-11-21 21:44:58
|
Thank you so much! I think it works. Sincerely, Jon On Fri, Nov 12, 2010 at 1:31 PM, Julien Rioux <jr...@ph...>wrote: > On 12/11/2010 2:09 PM, Jon wrote: > > convert aaa.eps -resize 640 480 aaa.png > > > > outside gnuplot, but the plot is smeared out due to magnification. > > > > use an higher density of pixels for rasterizing, and more output pixels: > convert -density 1000 -resize 3200x2400 aaa.eps aaa.png > > but best to leave out the -resize part and just tweak the correct number > for -density for the desired output size. > > Cheers, > Julien > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |