[dia] Bug 600972 - Improved text alignment for PGF export



commit 5c1fccd7489e4248e0f453f5665b78a4aaa71062
Author: Hans Breuer <hans breuer org>
Date:   Fri Jun 10 12:07:03 2011 +0200

    Bug 600972 - Improved text alignment for PGF export
    
    https://bugzilla.gnome.org/show_bug.cgi?id=600972#c7

 plug-ins/pgf/render_pgf.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/pgf/render_pgf.c b/plug-ins/pgf/render_pgf.c
index bd7491b..6b1b6bb 100644
--- a/plug-ins/pgf/render_pgf.c
+++ b/plug-ins/pgf/render_pgf.c
@@ -1156,12 +1156,13 @@ draw_string(DiaRenderer *self,
     fprintf(renderer->file,"\\node");
     switch (alignment) {
     case ALIGN_LEFT:
-	fprintf(renderer->file,"[anchor=west]");
+	fprintf(renderer->file,"[anchor=base west,inner sep=0pt,outer sep=0pt]");
 	break;
     case ALIGN_CENTER:
+	fprintf(renderer->file,"[anchor=base,inner sep=0pt, outer sep=0pt]");
 	break;
     case ALIGN_RIGHT:
-	fprintf(renderer->file,"[anchor=east]");
+	fprintf(renderer->file,"[anchor=base east,inner sep=0pt, outer sep=0pt]");
 	break;
     }
     fprintf(renderer->file," at (%s\\du,%s\\du){%s};\n",



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