Package: graphviz
Version: 2.2.1-1sarge1
Severity: normal

 Gdtclft does not works with proportional fonts correctly.

  One of our customers is using gdtclft to create png-graphics with
  his CGI-scripts written in TCL. The output of fonts in the graphics
  is not correct. In the first example the word 'Barometer' shows up
  like 'B arom eter' in the generated png:

    http://www.huecker.com/cgi-bin/graph.cgi

  A correct version looks like this:

    http://www.huecker.com/misc/img/graph/graph_s.png

  Another example of broken fonts where the last two lines are
  too wide and most fonts look ugly:

    http://www.huecker.com/cgi-bin/fonts.cgi

  compared to the correct version where the lines fit and the
  fonts are better looking:

    http://www.huecker.com/misc/img/graph/fonts_s.png
  
  The correct versions where created by the same CGI but on SuSE-Linux 7.1
  with tclsh 8.4 and gdtclft 2.2. I'm filing this bug-report on behalf one
  of our custumers who uses the SuSE-Box as his home-machine.

  He has contaced the author of Graphviz/Gdtclft, Jon Ellson, who
  suggested to file this bug-report. He supplied the following patch
  which I used against graphviz-2.2.1-1sarge1 and graphviz-2.8-2.2
  but it did not help to improve the situation:

 ---------------------------- Quote ----------------------------

At 13:24 24.05.06, you ( John Ellson <[EMAIL PROTECTED]> ) wrote:

I found that gdtclft wasn't using fontconfig, which could possibly be the
cause of the strange text problem.  If you can build from source, try
applying the attached patch.

John


Index: gdtclft.c
===================================================================
RCS file: /home/cvsroot/graphviz2/tclpkg/gdtclft/gdtclft.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- gdtclft.c 21 May 2006 17:47:43 -0000 1.10
+++ gdtclft.c 24 May 2006 00:19:33 -0000 1.11
@@ -1,4 +1,4 @@
-/* $Id: gdtclft.c,v 1.10 2006/05/21 17:47:43 ellson Exp $ $Revision:
1.10 $ */
+/* $Id: gdtclft.c,v 1.11 2006/05/24 00:19:33 ellson Exp $ $Revision:
1.11 $ */
  /* vim:set shiftwidth=4 ts=8: */

  /**********************************************************
@@ -1332,6 +1332,7 @@
      str = Tcl_GetStringFromObj(objv[9], &len);
      fontname = Tcl_GetString(objv[4]);

+    gdFTUseFontConfig(1);
      error =
   gdImageStringFT(im, brect, color, fontname, ptsize, angle, x, y, str);

--

At 18:58 24.05.06, you ( John Ellson <[EMAIL PROTECTED]> ) wrote:

I recommend that you submit a Debian bug report so that the Debian
maintainer can try to recreate the problem. We work together fairly
closely, so once he has the problem I'll help
him to identify a fix.

John 

 ---------------------------------------------------------------


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-3-686-smp
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages graphviz depends on:
ii  libc6              2.3.2.ds1-22sarge4    GNU C Library: Shared libraries an
ii  libexpat1          1.95.8-3              XML parsing C library - runtime li
ii  libfontconfig1     2.3.1-2               generic font configuration library
ii  libfreetype6       2.1.7-6               FreeType 2 font engine, shared lib
ii  libice6            4.3.0.dfsg.1-14sarge1 Inter-Client Exchange library
hi  libjpeg62          6b-10                 The Independent JPEG Group's JPEG 
ii  libpng12-0         1.2.8rel-1            PNG library - runtime
ii  libsm6             4.3.0.dfsg.1-14sarge1 X Window System Session Management
ii  libx11-6           4.3.0.dfsg.1-14sarge1 X Window System protocol client li
ii  libxaw7            4.3.0.dfsg.1-14sarge1 X Athena widget set library
ii  libxext6           4.3.0.dfsg.1-14sarge1 X Window System miscellaneous exte
ii  libxmu6            4.3.0.dfsg.1-14sarge1 X Window System miscellaneous util
ii  libxpm4            4.3.0.dfsg.1-14sarge1 X pixmap library
ii  libxt6             4.3.0.dfsg.1-14sarge1 X Toolkit Intrinsics
ii  tcl8.4             8.4.9-1               Tcl (the Tool Command Language) v8
ii  tk8.4              8.4.9-1               Tk toolkit for Tcl and X11, v8.4 -
ii  xlibs              4.3.0.dfsg.1-14sarge1 X Keyboard Extension (XKB) configu
ii  zlib1g             1:1.2.2-4.sarge.2     compression library - runtime

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to