fonts with 3.0
Tetsuro KURITA
tkurita at mac.com
Fri Jan 11 06:19:52 CST 2008
I think octave 3.0 have a problem to specify fonts of xlabel, ylabel, title.
In some gunuplot terminal, font setting does not work.
I the case the gnuplot terminal is x11, no problems seems to appear.
But we can not control label's font in the postscript terminal.
Because octave send lowercase font names to gnuplot always.
It looks font name is converted into lowercase in plot/__go_draw_axes__.m
I think font names should be dealt with in case sensitive.
If you modify plot/__go_draw_axes__.m as follows, we can obtain font
control in postscript output.
*** 1604,1610 ****
if (isempty (t.fontname))
fnt = "helvetica";
else
! fnt = tolower (t.fontname);
endif
f = fnt;
it = false;
--- 1604,1610 ----
if (isempty (t.fontname))
fnt = "helvetica";
else
! fnt = t.fontname;
endif
f = fnt;
it = false;
I think this problem is addressed as a bug.
On 2008/01/11, at 17:22, David Bateman wrote:
> Dmitri A. Sergatskov wrote:
>> With the older graphics engine, print("-depsc2", "-F:18", "fname.ps") would set
>> the same fonts for axes and for labels/titles. Now, with 3.0, it sets
>> only axis fonts.
>> I am not sure if this is a bug or the feature. If it is a feature, how
>> one does set the
>> fonts for th xlabel, ylabel, and the title?
>>
>> Sincerely,
>>
>> Dmitri.
>> --
>> _______________________________________________
>> Help-octave mailing list
>> Help-octave at octave.org
>> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>>
>>
> Sometime like
>
> octave:1> plot(1:10)
> octave:2> xlabel("X","fontname","Times")
> octave:3> ylabel("Y","fontname","Helvetica")
>
> should work.
>
> D.
>
> --
> David Bateman David.Bateman at motorola.com
> Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
> Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)
> 91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)
>
> The information contained in this communication has been classified as:
>
> [x] General Business Information
> [ ] Motorola Internal Use Only
> [ ] Motorola Confidential Proprietary
>
> _______________________________________________
> Help-octave mailing list
> Help-octave at octave.org
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
=======================================================
Tetsuro KURITA
E-mail: tkurita at mac.com
http://homepage.mac.com/tkurita/scriptfactory/en/
=======================================================
More information about the Help-octave
mailing list