[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: setting png font
From: |
Ben Abbott |
Subject: |
Re: setting png font |
Date: |
Thu, 19 Aug 2010 18:59:43 -0400 |
On Aug 19, 2010, at 6:53 PM, Ben Abbott wrote:
> On Aug 19, 2010, at 2:39 PM, Dr. Johannes Zellner wrote:
>
>> Hi,
>>
>> How do I set the png font name and size?
>>
>> all attempts with "print -F:6" or -FVera:6 failed.
>>
>> The gnuplot backend is capable of ttf fonts in the png terminal (libgd), so
>> the gnuplot version which is used by octave accepts stuff like "set term png
>> font 'Vera,6"
>>
>> any help much appreciated.
>>
>> Johannes.
>
> I have confirmed this behavior. I'll try to find a work around, which will
> likely depend upon the version of gnuplot you are running.
>
> Can you tell us what version of Octave and Gnuplot you are running?
>
> Ben
For gnuplot 4.4, you can modify the fontsize of all text by ...
ht = findall (gcf, "-property", "fontsize");
set (ht, "fontsize", 6)
print -dpng test.png
For gnuplot 4.2.x, I haven't found a solution.
Ben