[gl2ps] fix text alignment and rotation in PDF

Dan Lipsa dan.lipsa at kitware.com
Thu Jul 27 22:10:35 CEST 2017


Hi all,
I would like to submit the following patch that fixes text alignment and
rotation for output to PDF.
We use this in the VTK version of gl2ps.

I had to add an extra gl2psTextOptColor function with parameters for the
bottom left corner of the text bounding box.


GL2PSDLL_API GLint gl2psTextOptColorBL(
+  const char *str, const char *fontname,
+  GLshort fontsize, GLint alignment, GLfloat angle,
+  GL2PSrgba color, GLfloat blx, GLfloat bly);


Thanks,
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gl2ps/attachments/20170727/5e5ba6f0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gl2ps.patch
Type: text/x-patch
Size: 6363 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gl2ps/attachments/20170727/5e5ba6f0/attachment.patch>