help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Print to png file, cant get label fonts to work


From: browny
Subject: Print to png file, cant get label fonts to work
Date: Mon, 20 Oct 2008 09:20:18 -0700 (PDT)

Hi, Ive seen that this problem is pretty common and the solution seems to be
to do "export GDFONTPATH="...."", specifying the font directory location,
but this doesnt seem to have any effect on it at all. I still get the error
"gdImageStringFT: Could not find/open font while printing string Gray Level
(D) with font Vera.ttf" 
I have tried it for a lot of different fonts in a lot of different
directories both with and without the .ttf included and i get the same
result everytime.

I also saw that by doing something like this  
title ('My plot', 'FontName',
"/usr/share/fonts/truetype/ttf-mgopen/MgOpenModernaBold.ttf");
a temporary workaround should fix it, but when I do this I get the following

*** stack smashing detected ***: gnuplot terminated                             
                                     
======= Backtrace: =========                                                    
                                     
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb753e138]                   
                                     
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x0)[0xb753e0f0]                    
                                     
gnuplot[0x810b34a]                                                              
                                     
gnuplot[0x80cd7f6]                                                              
                                     
======= Memory map: ========                                                    
                                     
08048000-0815d000 r-xp 00000000 08:06 8030491    /usr/bin/gnuplot               
                                     
0815d000-0816e000 rw-p 00115000 08:06 8030491    /usr/bin/gnuplot               
                                     
0816e000-0825c000 rw-p 0816e000 00:00 0          [heap]                         
                                     
b6d15000-b6d67000 rw-p b6d5a000 00:00 0                                         
                                     
b6d8b000-b6d9c000 r--p 00000000 08:06 8249450   
/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf               
b6d9c000-b6d9f000 rw-p b6d9c000 00:00 0                                         
                                     
b6d9f000-b6da3000 r-xp 00000000 08:06 8029360    /usr/lib/libXdmcp.so.6.0.0     
                                     
b6da3000-b6da4000 rw-p 00003000 08:06 8029360    /usr/lib/libXdmcp.so.6.0.0     
                                     
b6da4000-b6da6000 r-xp 00000000 08:06 8029349    /usr/lib/libXau.so.6.0.0       
                                     
b6da6000-b6da7000 rw-p 00001000 08:06 8029349    /usr/lib/libXau.so.6.0.0       
                                     
b6da7000-b6dbe000 r-xp 00000000 08:06 8030219    /usr/lib/libxcb.so.1.0.0       
                                     
b6dbe000-b6dbf000 rw-p 00016000 08:06 8030219    /usr/lib/libxcb.so.1.0.0       
                                     
b6dbf000-b6dc0000 r-xp 00000000 08:06 8030215   
/usr/lib/libxcb-xlib.so.0.0.0                                       
b6dc0000-b6dc1000 rw-p 00000000 08:06 8030215   
/usr/lib/libxcb-xlib.so.0.0.0                                       
b6dc1000-b6dc2000 rw-p b6dc1000 00:00 0                                         
                                     
b6dc2000-b6dca000 r-xp 00000000 08:06 8029356   
/usr/lib/libXcursor.so.1.0.2                                        
b6dca000-b6dcb000 rw-p 00007000 08:06 8029356   
/usr/lib/libXcursor.so.1.0.2                                        
b6dcb000-b6dd0000 r-xp 00000000 08:06 8029382    /usr/lib/libXrandr.so.2.1.0    
                                     
b6dd0000-b6dd1000 rw-p 00005000 08:06 8029382    /usr/lib/libXrandr.so.2.1.0    
                                     
b6dd1000-b6dd8000 r-xp 00000000 08:06 8029370    /usr/lib/libXi.so.6.0.0        
                                     
b6dd8000-b6dd9000 rw-p 00006000 08:06 8029370    /usr/lib/libXi.so.6.0.0        
                                     
b6dd9000-b6de6000 r-xp 00000000 08:06 8029362    /usr/lib/libXext.so.6.4.0      
                                     
b6de6000-b6de7000 rw-p 0000d000 08:06 8029362    /usr/lib/libXext.so.6.4.0      
                                     
b6de7000-b6deb000 r-xp 00000000 08:06 8029364    /usr/lib/libXfixes.so.3.1.0    
                                     
b6deb000-b6dec000 rw-p 00003000 08:06 8029364    /usr/lib/libXfixes.so.3.1.0    
                                     
b6dec000-b6ded000 rw-p b6dec000 00:00 0                                         
                                     
b6ded000-b6def000 r-xp 00000000 08:06 8029358   
/usr/lib/libXdamage.so.1.1.0                                        
b6def000-b6df0000 rw-p 00001000 08:06 8029358   
/usr/lib/libXdamage.so.1.1.0                                        
b6df0000-b6df2000 r-xp 00000000 08:06 8029354   
/usr/lib/libXcomposite.so.1.0.0                                     
b6df2000-b6df3000 rw-p 00001000 08:06 8029354   
/usr/lib/libXcomposite.so.1.0.0                                     
b6df3000-b6e19000 r-xp 00000000 08:06 8030140    /usr/lib/libpcre.so.3.12.1     
                                     
b6e19000-b6e1a000 rw-p 00026000 08:06 8030140    /usr/lib/libpcre.so.3.12.1     
                                     
b6e1a000-b6e31000 r-xp 00000000 08:06 3162235    /lib/libselinux.so.1           
                                     
b6e31000-b6e33000 rw-p 00016000 08:06 3162235    /lib/libselinux.so.1           
                                     
b6e33000-b6e5b000 r-xp 00000000 08:06 8030046   
/usr/lib/libpixman-1.so.0.10.0                                      
b6e5b000-b6e5c000 rw-p 00027000 08:06 8030046   
/usr/lib/libpixman-1.so.0.10.0                                      
b6e5c000-b6e5d000 rw-p b6e5c000 00:00 0                                         
                                     
b6e5d000-b6f41000 r-xp 00000000 08:06 8029345    /usr/lib/libX11.so.6.2.0       
                                     
b6f41000-b6f44000 rw-p 000e4000 08:06 8029345    /usr/lib/libX11.so.6.2.0       
                                     
b6f44000-b6f4b000 r-xp 00000000 08:06 8029384   
/usr/lib/libXrender.so.1.3.0                                        
b6f4b000-b6f4c000 rw-p 00007000 08:06 8029384   
/usr/lib/libXrender.so.1.3.0                                        
b6f4c000-b6f75000 r-xp 00000000 08:06 8029578   
/usr/lib/libfontconfig.so.1.3.0                                     
b6f75000-b6f76000 rw-p 00029000 08:06 8029578   
/usr/lib/libfontconfig.so.1.3.0                                     
b6f76000-b6f9c000 r-xp 00000000 08:06 8030593   
/usr/lib/libpangoft2-1.0.so.0.2002.3                                
b6f9c000-b6f9d000 rw-p 00026000 08:06 8030593   
/usr/lib/libpangoft2-1.0.so.0.2002.3                                
b6f9d000-b6fbc000 r-xp 00000000 08:06 8029560    /usr/lib/libexpat.so.1.5.2     
                                     
b6fbc000-b6fbe000 rw-p 0001e000 08:06 8029560    /usr/lib/libexpat.so.1.5.2     
                                     
b6fbe000-b6fbf000 rw-p b6fbe000 00:00 0                                         
                                     
b6fbf000-b7010000 r-xp 00000000 08:06 8028394    /usr/lib/libtiff.so.4.2.1      
                                     
b7010000-b7012000 rw-p 00050000 08:06 8028394    /usr/lib/libtiff.so.4.2.1      
                                     
b7012000-b7014000 r-xp 00000000 08:06 8029372   
/usr/lib/libXinerama.so.1.0.0                                       
b7014000-b7015000 rw-p 00001000 08:06 8029372   
/usr/lib/libXinerama.so.1.0.0                                       
b7015000-b701c000 r-xp 00000000 08:06 3180508   
/lib/tls/i686/cmov/librt-2.7.so                                     
b701c000-b701e000 rw-p 00006000 08:06 3180508   
/lib/tls/i686/cmov/librt-2.7.so                                     
b701e000-b7022000 r-xp 00000000 08:06 8030147   
/usr/lib/libgthread-2.0.so.0.1600.4                                 
b7022000-b7023000 rw-p 00003000 08:06 8030147   
/usr/lib/libgthread-2.0.so.0.1600.4                                 
b7023000-b7024000 rw-p b7023000 00:00 0                                         
                                     
b7024000-b703b000 r-xp 00000000 08:06 8029693   
/usr/lib/libgdk_pixbuf-2.0.so.0.1200.9                              
b703b000-b703c000 rw-p 00016000 08:06 8029693   
/usr/lib/libgdk_pixbuf-2.0.so.0.1200.9                              
b703c000-b7054000 r-xp 00000000 08:06 8029448   
/usr/lib/libatk-1.0.so.0.2209.1                                     
b7054000-b7056000 rw-p 00018000 08:06 8029448   
/usr/lib/libatk-1.0.so.0.2209.1                                     
b7056000-b70d7000 r-xp 00000000 08:06 8029610   
/usr/lib/libgdk-x11-2.0.so.0.1200.9                                 
b70d7000-b70da000 rw-p 00080000 08:06 8029610   
/usr/lib/libgdk-x11-2.0.so.0.1200.9                                 
b70da000-b744a000 r-xp 00000000 08:06 8030288   
/usr/lib/libgtk-x11-2.0.so.0.1200.9                                 
b744a000-b7450000 rw-p 00370000 08:06 8030288   
/usr/lib/libgtk-x11-2.0.so.0.1200.9                                 
b7450000-b7451000 rw-p b7450000 00:00 0                                         
                                     
b7451000-b759a000 r-xp 00000000 08:06 3180475   
/lib/tls/i686/cmov/libc-2.7.so                                      
b759a000-b759b000 r--p 00149000 08:06 3180475   
/lib/tls/i686/cmov/libc-2.7.so                                      
b759b000-b759d000 rw-p 0014a000 08:06 3180475   
/lib/tls/i686/cmov/libc-2.7.so                                      
b759d000-b75a1000 rw-p b759d000 00:00 0                                         
                                     
b75a1000-b75b5000 r-xp 00000000 08:06 3180506   
/lib/tls/i686/cmov/libpthread-2.7.so                                
b75b5000-b75b7000 rw-p 00013000 08:06 3180506   
/lib/tls/i686/cmov/libpthread-2.7.so                                
b75b7000-b75b9000 rw-p b75b7000 00:00 0                                         
                                     
b75b9000-b75c3000 r-xp 00000000 08:06 3162174    /lib/libgcc_s.so.1             
                                     
b75c3000-b75c4000 rw-p 0000a000 08:06 3162174    /lib/libgcc_s.so.1
b75c4000-b76ac000 r-xp 00000000 08:06 8030143    /usr/lib/libstdc++.so.6.0.9
b76ac000-b76af000 r--p 000e8000 08:06 8030143    /usr/lib/libstdc++.so.6.0.9
b76af000-b76b1000 rw-p 000eb000 08:06 8030143    /usr/lib/libstdc++.so.6.0.9
b76b1000-b76b7000 rw-p b76b1000 00:00 0
b76b7000-b76da000 r-xp 00000000 08:06 3180480   
/lib/tls/i686/cmov/libm-2.7.so
b76da000-b76dc000 rw-p 00023000 08:06 3180480   
/lib/tls/i686/cmov/libm-2.7.so
b76dc000-b778c000 r-xp 00000000 08:06 8030144   
/usr/lib/libglib-2.0.so.0.1600.4
b778c000-b778d000 rw-p 000b0000 08:06 8030144   
/usr/lib/libglib-2.0.so.0.1600.4Aborted
error: can't perform indexing operations for <unknown type> type


I had a read of a help file in gnuplot about environments, and im a pretty
big beginner here, but to me it seemed as though there is meant to be a
.gnuplot file in my home directory? 
" On Unix, HOME is used as the name of a directory to search for a .gnuplot
 file if none is found in the current directory."
I dont have one there, just .gnuplot_history.

Anyone know whats happening?

Also on a slightly different note I have another question. I tried printing
to some different file types when I couldnt get png to work and all the
others work fine with the fonts except they all have their own little
problems. ie the eps and jpg files i cant get the resolution greater than
360x252 which is pretty useless. When I export as svg the filesize is
ridiculous, the jpg/png/eps are all ~10kb while the svg is almost 7mb, why
would that be happening? Also, exporting to pdf, can I make the image full
page like the ps file (which is the only one that works how I want it).
Currently the pdf appears as a small image about a quarter the size of a
page printed at the bottom...can I make it full page?


As you can see Ive been having quite a few problems trying to save my images
so any help would be really appreciated.

Cheers.
-- 
View this message in context: 
http://www.nabble.com/Print-to-png-file%2C-cant-get-label-fonts-to-work-tp20062147p20062147.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]