octave-maintainers
[Top][All Lists]
Advanced

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

Re: openGL printing


From: John W. Eaton
Subject: Re: openGL printing
Date: Wed, 18 Nov 2009 23:14:22 -0500

On 14-Nov-2009, Shai Ayal wrote:

| On Fri, Nov 13, 2009 at 1:07 PM, Michael Godfrey
| <address@hidden> wrote:
| > A very minor adjustment of xlabel and ylabel is needed.
| > The following example should show the problem:
| > octave:1> plot([1:200])
| > octave:2> xlabel('this is xlabel');
| > octave:3> ylabel('this is ylabel');
| > octave:4> title('this is the title');
| > octave:5> print "test01.ps"
| > =========================
| > The plot looks just fine with the x and y labels positioned
| > correctly.  However, the PS file has the x and y labels written
| > too close to the actual x and y axes so that the text overlaps
| > the numeric scale values.
| 
| The attached changeset fixes this issue by computing the bounding box
| of the text with the freetype renderer also when printing postscript.
| This bounding box is used by the gl-render code to auto compute the
| position of the axes labels.
| Note - the on-screen fonts and the postscript fonts are not
| necessarily identical, so the result might not look so good depending
| on the available fonts on your system ....

I committed this change.

Thanks,

jwe



reply via email to

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