Using TeX notation in xlabel makes the title of the figure change to Greek font

David Bateman adb014 at gmail.com
Tue Sep 23 01:20:16 CDT 2008


Thomas Weber wrote:
> On Mon, Sep 22, 2008 at 06:25:30PM +0200, David Bateman wrote:
>> Alexander Mamonov wrote:
>>> This solved the problem. The title is displayed correctly now.
>>> Is it possible to set the default font once and for all, without
>>> adding the line
>>> set(gcf(), 'DefaultTextFontName', 'arial')
>>> for every figure?
>>>   
>> It should be set and isn't... Something in your setup is clearing it.. 
>> Check your octaverc files.
> 
> No, Octave sets it to Helvetica by default. This is causing the usual
> gdImageStringFT error message, 
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477688
> when saving as .png or .jpeg.
> 
> Therefore, we set the font to the empty string in Debian[1] -- and before
> you blame me now, 3.0.2 is not in Ubuntu right now, so I don't know why
> it happens with the OP's version.
> 
> I asked this once already: is there anybody who knows where to get
> Helvetica as truetype font?
> 
> [1] Yes, sorry, but I wasn't aware that this just creates a different
> sort of problem. 
> 
> 	Thomas


Helvetica was chosen as that is teh matlab default font. I suppose we 
might pick Arial instead as the default if it made things easier.

D>



More information about the Bug-octave mailing list