Your message dated Sat, 14 Apr 2007 05:17:03 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#406191: fixed in libcairo 1.4.4-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libcairo2
Version: 1.2.4-4
Severity: normal
Tags: patch

Cairo sometimes creates pdf files that contain invalid fonts, like the
following:

<< /Type /Font
   /Subtype /TrueType
   /BaseFont /DejaVuSans
   /FirstChar 0
   /LastChar 256
   /FontDescriptor 171 0 R
   /Widths [ ...(255 integers)... ]
>>

This font contains 256 characters, but /LastChar is incorrectly set to
256 instead of 255. acroread complains about incorrect /Widths in such
fonts (but shows file anyway).

There are several places in source code where number of characters is
passed as parameter for /LastChar, attached patch fixes this.

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.20-rc3-me
Locale: LANG=uk_UA.UTF-8, LC_CTYPE=uk_UA.UTF-8 (charmap=UTF-8)

Versions of packages libcairo2 depends on:
ii  libc6                     2.3.6.ds1-9    GNU C Library: Shared libraries
ii  libfontconfig1            2.4.2-1        generic font configuration library
ii  libfreetype6              2.2.1-5        FreeType 2 font engine, shared lib
ii  libpng12-0                1.2.15~beta5-1 PNG library - runtime
ii  libx11-6                  2:1.0.3-4      X11 client-side library
ii  libxrender1               1:0.9.1-3      X Rendering Extension client libra
ii  zlib1g                    1:1.2.3-13     compression library - runtime

libcairo2 recommends no packages.

-- no debconf information
diff -urpN -U 10 libcairo-1.2.4/src/cairo-pdf-surface.c 
libcairo-1.2.4.fix/src/cairo-pdf-surface.c
--- libcairo-1.2.4/src/cairo-pdf-surface.c      2006-08-19 01:11:58.000000000 
+0200
+++ libcairo-1.2.4.fix/src/cairo-pdf-surface.c  2007-01-09 13:31:19.000000000 
+0100
@@ -1658,21 +1658,21 @@ _cairo_pdf_surface_emit_type1_font_subse
                                 "%d 0 obj\r\n"
                                 "<< /Type /Font\r\n"
                                 "   /Subtype /Type1\r\n"
                                 "   /BaseFont /%s\r\n"
                                 "   /FirstChar 0\r\n"
                                 "   /LastChar %d\r\n"
                                 "   /FontDescriptor %d 0 R\r\n"
                                 "   /Widths [",
                                 subset_resource.id,
                                 subset.base_font,
-                                font_subset->num_glyphs,
+                                font_subset->num_glyphs - 1,
                                 descriptor.id);
 
     for (i = 0; i < font_subset->num_glyphs; i++)
        _cairo_output_stream_printf (surface->output,
                                     " %d",
                                     subset.widths[i]);
 
     _cairo_output_stream_printf (surface->output,
                                 " ]\r\n"
                                 ">>\r\n"
@@ -1761,21 +1761,21 @@ _cairo_pdf_surface_emit_truetype_font_su
                                 "%d 0 obj\r\n"
                                 "<< /Type /Font\r\n"
                                 "   /Subtype /TrueType\r\n"
                                 "   /BaseFont /%s\r\n"
                                 "   /FirstChar 0\r\n"
                                 "   /LastChar %d\r\n"
                                 "   /FontDescriptor %d 0 R\r\n"
                                 "   /Widths [",
                                 subset_resource.id,
                                 subset.base_font,
-                                font_subset->num_glyphs,
+                                font_subset->num_glyphs - 1,
                                 descriptor.id);
 
     for (i = 0; i < font_subset->num_glyphs; i++)
        _cairo_output_stream_printf (surface->output,
                                     " %d",
                                     subset.widths[i]);
 
     _cairo_output_stream_printf (surface->output,
                                 " ]\r\n"
                                 ">>\r\n"
@@ -2138,21 +2138,21 @@ _cairo_pdf_surface_write_fonts (cairo_pd
                                     "%d 0 obj\r\n"
                                     "<< /Type /Font\r\n"
                                     "   /Subtype /TrueType\r\n"
                                     "   /BaseFont /%s\r\n"
                                     "   /FirstChar 0\r\n"
                                     "   /LastChar %d\r\n"
                                     "   /FontDescriptor %d 0 R\r\n"
                                     "   /Widths ",
                                     font->font_id,
                                     font->base_font,
-                                    font->num_glyphs,
+                                    font->num_glyphs - 1,
                                     descriptor.id);
 
        _cairo_output_stream_printf (surface->output,
                                     "[");
 
        for (j = 0; j < font->num_glyphs; j++)
            _cairo_output_stream_printf (surface->output,
                                         " %d",
                                         font->widths[j]);
 

--- End Message ---
--- Begin Message ---
Source: libcairo
Source-Version: 1.4.4-1

We believe that the bug you reported is fixed in the latest version of
libcairo, which is due to be installed in the Debian FTP archive:

libcairo-directfb2-dev_1.4.4-1_i386.deb
  to pool/main/libc/libcairo/libcairo-directfb2-dev_1.4.4-1_i386.deb
libcairo-directfb2-udeb_1.4.4-1_i386.udeb
  to pool/main/libc/libcairo/libcairo-directfb2-udeb_1.4.4-1_i386.udeb
libcairo-directfb2_1.4.4-1_i386.deb
  to pool/main/libc/libcairo/libcairo-directfb2_1.4.4-1_i386.deb
libcairo2-dev_1.4.4-1_i386.deb
  to pool/main/libc/libcairo/libcairo2-dev_1.4.4-1_i386.deb
libcairo2-doc_1.4.4-1_all.deb
  to pool/main/libc/libcairo/libcairo2-doc_1.4.4-1_all.deb
libcairo2_1.4.4-1_i386.deb
  to pool/main/libc/libcairo/libcairo2_1.4.4-1_i386.deb
libcairo_1.4.4-1.diff.gz
  to pool/main/libc/libcairo/libcairo_1.4.4-1.diff.gz
libcairo_1.4.4-1.dsc
  to pool/main/libc/libcairo/libcairo_1.4.4-1.dsc
libcairo_1.4.4.orig.tar.gz
  to pool/main/libc/libcairo/libcairo_1.4.4.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dave Beckett <[EMAIL PROTECTED]> (supplier of updated libcairo package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 13 Apr 2007 21:46:46 -0700
Source: libcairo
Binary: libcairo-directfb2-udeb libcairo-directfb2-dev libcairo-directfb2 
libcairo2-doc libcairo2 libcairo2-dev
Architecture: source i386 all
Version: 1.4.4-1
Distribution: unstable
Urgency: low
Maintainer: Dave Beckett <[EMAIL PROTECTED]>
Changed-By: Dave Beckett <[EMAIL PROTECTED]>
Description: 
 libcairo-directfb2 - The Cairo 2D vector graphics library DirectFB build
 libcairo-directfb2-dev - Development files for Cairo graphics library DirectFB 
build
 libcairo-directfb2-udeb - The Cairo 2D vector graphics library DirectFB build 
(udeb)
 libcairo2  - The Cairo 2D vector graphics library
 libcairo2-dev - Development files for the Cairo 2D graphics library
 libcairo2-doc - Documentation for the Cairo Multi-platform 2D graphics library
Closes: 406191 418616
Changes: 
 libcairo (1.4.4-1) unstable; urgency=low
 .
   * New upstream release
   * Remove different versioned shlibs dependency for one udeb
     to get rid of duplicate dependencies (Closes: #418616)
   * Switch shlibs API version to 1.4.0 since API calls were added
   * PDF fonts fixed upstream (Closes: #406191)
Files: 
 d346a848150dfeac873f60aa930b3703 878 libs optional libcairo_1.4.4-1.dsc
 e7ba942b6e3cd159b01ac20b3717c6d7 3202553 libs optional 
libcairo_1.4.4.orig.tar.gz
 2be4dc8f8ee4cbb023c3cf7a997116e2 17060 libs optional libcairo_1.4.4-1.diff.gz
 abe88b7e15a62d8ccdb4654a8ca5eb2e 543632 libdevel optional 
libcairo2-dev_1.4.4-1_i386.deb
 2aba87dc8f41279555eed856d9e206f5 464840 libs optional 
libcairo2_1.4.4-1_i386.deb
 2af124388441dce912bfad623dc3f883 364248 libs optional 
libcairo2-doc_1.4.4-1_all.deb
 71881093cbb625820cdd58fd13738c4b 177388 debian-installer optional 
libcairo-directfb2-udeb_1.4.4-1_i386.udeb
 4254a8e54406ebdaa617d0b06e44de0c 422006 libs optional 
libcairo-directfb2_1.4.4-1_i386.deb
 aa266e31b029e0caa130a6bcce044e38 490390 libdevel optional 
libcairo-directfb2-dev_1.4.4-1_i386.deb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGIF14Q+ySUE9xlVoRAqwiAJ43Hp+9FHBd4e7fT4GrBuRHpU2yBgCfdh+o
Kbn32BsxdP1Fqbf5+fGyKPM=
=HOfq
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to