help-octave
[Top][All Lists]
Advanced

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

Re: font size in print output -> PATCH


From: Eric Chassande-Mottin
Subject: Re: font size in print output -> PATCH
Date: Wed, 7 Apr 2010 01:59:24 -0800 (PST)


yes, I have the same problem with version 3.2.
it is not possible to adjust the font size when using
a png terminal. the size remains the same independently
of what is being set either with 

set(0, "defaultaxesfontsize", fsize) 
or
xlabel ("label","fontsize",fsize);
or
"-F:size" option in print()

I'd like to suggest the following patch that provides
a (potentially partial) solution.


diff -c /usr/share/octave/3.2.4/m/plot/print.m print.m
*** /usr/share/octave/3.2.4/m/plot/print.m      2010-03-04 02:03:56.000000000
+0100
--- print.m     2010-04-07 11:56:04.000000000 +0200
***************
*** 449,454 ****
--- 449,459 ----
        if (isempty (canvas_size) && isempty (resolution) 
          && any (strcmp (dev, {"pbm", "gif", "jpeg", "png"})))
        options = "";
+ 
+       if (! isempty (font))
+         options = cstrcat (options, "font \"", font, ",", fontsize, "\"");
+       endif
+ 
        elseif (strcmp (dev, "svg"))
        ## Referring to size, either "dynamic" or "fixed"
        options = "fixed";

-- 
View this message in context: 
http://n4.nabble.com/font-size-in-print-output-tp1634071p1754114.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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