Package: transfig
Version: 1:3.2.5.c-1
Severity: normal
Tags: patch

fig2dev is inserting leading spaces in text output:

"\s12\fR Data blocks\fP" at 5.750,9.346 
"\s12\fR inode\fP" at 3.062,9.096 ljust

when the output should be

"\s12\fRData blocks\fP" at 5.750,9.346 
"\s12\fRinode\fP" at 3.062,9.096 ljust

i.e. no space character between the font selection and the text,
since troff/groff do actually print that space, leading to bad
text alignment which makes the text alignment not match the
original fig file.

The attached patch removes this leading space to align the text
correctly.


Regards,
Roger

-- System Information:
Debian Release: 6.0
  APT prefers unstable
  APT policy: (550, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages transfig depends on:
ii  gawk                      1:3.1.7.dfsg-5 GNU awk, a pattern scanning and pr
ii  libc6                     2.11.2-11      Embedded GNU C Library: Shared lib
ii  libpng12-0                1.2.44-1       PNG library - runtime
ii  libxpm4                   1:3.5.9-1      X11 pixmap library
ii  x11-common                1:7.5+8        X Window System (X.Org) infrastruc

Versions of packages transfig recommends:
ii  ghostscript               8.71~dfsg2-10  The GPL Ghostscript PostScript/PDF
ii  netpbm                    2:10.0-12.2+b1 Graphics conversion tools between 

Versions of packages transfig suggests:
ii  xfig                       1:3.2.5.b-1.1 Facility for Interactive Generatio

-- no debconf information
diff -urN transfig-3.2.5.c.original/fig2dev/dev/genpic.c transfig-3.2.5.c/fig2dev/dev/genpic.c
--- transfig-3.2.5.c.original/fig2dev/dev/genpic.c	2011-02-04 09:59:54.585215258 +0000
+++ transfig-3.2.5.c/fig2dev/dev/genpic.c	2011-02-04 10:00:22.170225762 +0000
@@ -443,7 +443,7 @@
 	size = PICFONTMAG(t);
 	if (!OptNoUnps) {
 	  unpsfont(t);
-	  fprintf(tfp, "\"\\s%d\\f%s ", size, PICFONT(t->font));
+	  fprintf(tfp, "\"\\s%d\\f%s", size, PICFONT(t->font));
 	} else {
 	  fprintf(tfp, ".ps\n.ps %d\n", size );
 	  fprintf(tfp, ".ft\n.ft %s\n", PICPSFONT(t) );

Reply via email to