From 37bfcac93a5bb6996d671e357ab45cf96a13826f Mon Sep 17 00:00:00 2001 From: "David C. Lonie" Date: Fri, 6 Feb 2015 15:10:10 -0500 Subject: [PATCH] Export text as paths in vector exports. The text alignment flags aren't handled consistently across GL2PS backends (e.g. PDF has no concept of alignment), so exporting the text as a series of Bezier curves will ensure that the resulting export is consistent, regardless of format and/or viewer. --- Packages/vcs/Lib/VTKPlots.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Packages/vcs/Lib/VTKPlots.py b/Packages/vcs/Lib/VTKPlots.py index 506ce2a86d..73171cf03f 100644 --- a/Packages/vcs/Lib/VTKPlots.py +++ b/Packages/vcs/Lib/VTKPlots.py @@ -1338,6 +1338,7 @@ def vectorGraphics(self, output_type, file, width=None, height=None, units=None) gl.SetInput(self.renWin) gl.SetCompress(0) # Do not compress gl.SetFilePrefix(".".join(file.split(".")[:-1])) + gl.TextAsPathOn() if output_type=="svg": gl.SetFileFormatToSVG() elif output_type == "ps":