[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: openGL printing
From: |
Shai Ayal |
Subject: |
Re: openGL printing |
Date: |
Sat, 14 Nov 2009 22:11:40 +0200 |
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 ....
Shai
gl2ps_bbox.changeset
Description: Binary data
- openGL printing, Michael Godfrey, 2009/11/13
- Re: openGL printing,
Shai Ayal <=