No letter spacing, incorrect glyphs in some fonts

Bug #1416690 reported by Alex Valavanis
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
New
Medium
Unassigned
inkscape (Debian)
Confirmed
Unknown

Bug Description

From: David Richfield <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: inkscape: No letter spacing, incorrect glyphs in some fonts
Date: Sun, 14 Oct 2007 23:23:57 +0200
Package: inkscape
Version: 0.44.1-1
Severity: normal

When I export an SVG from chemtool or xfig with default text and then
open it in inkscape, the wrong letters appear, and the letters are all
on top of one another. This occurs when the font-family is Helvetica or
Times. Doing a search-and-replace from Helvetica to Sans, and from
Times to Serif fixes the problem. Maybe inkscape should interpret
Helvetica as Sans and Times as Serif?

-- System Information:
Debian Release: 4.0
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.21.3
Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8)

Versions of packages inkscape depends on:
ii libatk1.0-0 1.12.4-3 The ATK accessibility toolkit
ii libbonobo2-0 2.14.0-3 Bonobo CORBA interfaces library
ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries
ii libcairo2 1.2.4-4 The Cairo 2D vector graphics libra
ii libdbus-1-3 1.0.2-1 simple interprocess messaging syst
ii libfontconfig1 2.4.2-1.2 generic font configuration library
ii libfreetype6 2.2.1-5 FreeType 2 font engine, shared lib
ii libgc1c2 1:6.8-1 conservative garbage collector for
ii libgcc1 1:4.1.1-21 GCC support library
ii libgconf2-4 2.16.1-1 GNOME configuration database syste
ii libglib2.0-0 2.12.4-2 The GLib library of C routines
ii libglibmm-2.4-1c2a 2.12.0-1 C++ wrapper for the GLib toolkit (
ii libgnomevfs2-0 1:2.14.2-7 GNOME virtual file-system (runtime
ii libgtk2.0-0 2.8.20-7 The GTK+ graphical user interface
ii libgtkmm-2.4-1c2a 1:2.8.8-1 C++ wrappers for GTK+ 2.4 (shared
ii liblcms1 1.15-1 Color management library
ii libloudmouth1-0 1.1.4-2 Lightweight C Jabber library
ii liborbit2 1:2.14.3-0.1 libraries for ORBit2 - a CORBA ORB
ii libpango1.0-0 1.14.8-5 Layout and rendering of internatio
ii libpng12-0 1.2.15~beta5-1 PNG library - runtime
ii libpopt0 1.10-3 lib for parsing cmdline parameters
ii libsigc++-2.0-0c2a 2.0.17-2 type-safe Signal Framework for C++
ii libstdc++6 4.1.1-21 The GNU Standard C++ Library v3
ii libx11-6 2:1.0.3-7 X11 client-side library
ii libxcursor1 1.1.7-4 X cursor management library
ii libxext6 1:1.0.1-2 X11 miscellaneous extension librar
ii libxfixes3 1:4.0.1-5 X11 miscellaneous 'fixes' extensio
ii libxft2 2.1.8.2-8 FreeType-based font drawing librar
ii libxi6 1:1.0.1-4 X11 Input extension library
ii libxinerama1 1:1.0.1-4.1 X11 Xinerama extension library
ii libxml2 2.6.27.dfsg-1 GNOME XML library
ii libxrandr2 2:1.1.0.2-5 X11 RandR extension library
ii libxrender1 1:0.9.1-3 X Rendering Extension client libra
ii libxslt1.1 1.1.19-1 XSLT processing library - runtime
ii zlib1g 1:1.2.3-13 compression library - runtime

Versions of packages inkscape recommends:
ii imagemagick 7:6.2.4.5.dfsg1-0.14 Image manipulation programs
pn libwmf-bin <none> (no description available)
pn perlmagick <none> (no description available)
pn pstoedit <none> (no description available)

-- no debconf information

Message #10 received at <email address hidden> (full text, mbox, reply):

From: Vincent Lefevre <email address hidden>
To: David Richfield <email address hidden>
Cc: Debian Bug Tracking System <email address hidden>, <email address hidden>
Subject: Re: inkscape: No letter spacing, incorrect glyphs in some fonts
Date: Mon, 15 Oct 2007 14:40:29 +0200
found 446688 0.45.1-1
thanks

On 2007-10-14 23:23:57 +0200, David Richfield wrote:
> When I export an SVG from chemtool or xfig with default text and
> then open it in inkscape, the wrong letters appear, and the letters
> are all on top of one another. This occurs when the font-family is
> Helvetica or Times. Doing a search-and-replace from Helvetica to
> Sans, and from Times to Serif fixes the problem.

Same problem with inkscape 0.45.1-1 and Helvetica font-family (at least).
The file was created by inkscape 0.45.1 itself under Mac OS X.

> Maybe inkscape should interpret Helvetica as Sans and Times as
> Serif?

AFAIK, Sans and Serif are just aliases. Using replacement fonts (this
is what Firefox seems to do) is not a correct solution since the font
metrics may be different, and often are in practice.

--
Vincent Lefèvre <email address hidden> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)

Bug marked as found in version 0.45.1-1. Request was from Vincent Lefevre <email address hidden> to <email address hidden>. (Mon, 15 Oct 2007 12:42:02 GMT) Full text and rfc822 format available.
Message #17 received at <email address hidden> (full text, mbox, reply):

From: Alex Valavanis <email address hidden>
To: <email address hidden>, <email address hidden>, <email address hidden>, <email address hidden>, "~suv" <email address hidden>
Subject: Re: inkscape: No letter spacing, incorrect glyphs in some fonts
Date: Wed, 9 Feb 2011 11:33:29 +0000
[Message part 1 (text/plain, inline)]
tags 446688 unreproducible moreinfo
thanks

Dear all,

I'm taking a look at old bug reports against the Inkscape package in
Debian. Please could you let me know if you still experience the
problems with incorrect rendering of default text in SVG documents
exported from xfig and chemtool? The original report can be found at
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=446688

I am unable to reproduce the bug using inkscape_0.48.0-1ubuntu1
(essentially identical to 0.48.0-1 in Debian). I have attached sample
chemtool (Helvetica) and xfig (Times) files, and the exported SVGs.
Both SVGs render correctly for me in Inkscape.

If you still experience the problem, please could you attach a sample file?

Thanks,

Alex
[test.chemtool (application/octet-stream, attachment)]
[test.chemtool.svg (image/svg+xml, attachment)]
[test.fig (image/x-xfig, attachment)]
[test.fig.svg (image/svg+xml, attachment)]
Added tag(s) unreproducible and moreinfo. Request was from Alex Valavanis <email address hidden> to <email address hidden>. (Wed, 09 Feb 2011 11:36:05 GMT) Full text and rfc822 format available.
Message #24 received at <email address hidden> (full text, mbox, reply):

From: Vincent Lefevre <email address hidden>
To: Alex Valavanis <email address hidden>
Cc: <email address hidden>, <email address hidden>, <email address hidden>, ~suv <email address hidden>
Subject: Re: inkscape: No letter spacing, incorrect glyphs in some fonts
Date: Wed, 9 Feb 2011 18:09:26 +0100
[Message part 1 (text/plain, inline)]
found 446688 0.47.0-2+b1
thanks

Note: 0.47.0-2+b1 is currently the latest version from unstable.

On 2011-02-09 11:33:29 +0000, Alex Valavanis wrote:
> If you still experience the problem, please could you attach a sample file?

vlefevre.svg is the source file.

vlefevre.pdf is the correct PDF file (exported from SVG with upstream
inkscape under Mac OS X).

vlefevre2.pdf is what I obtain under Debian.

--
Vincent Lefèvre <email address hidden> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
[vlefevre.svg (image/svg+xml, attachment)]
[vlefevre.pdf (application/pdf, attachment)]
[vlefevre2.pdf (application/pdf, attachment)]
Bug Marked as found in versions inkscape/0.47.0-2. Request was from Vincent Lefevre <email address hidden> to <email address hidden>. (Wed, 09 Feb 2011 17:12:07 GMT) Full text and rfc822 format available.
Message #31 received at <email address hidden> (full text, mbox, reply):

From: Alex Valavanis <email address hidden>
To: Vincent Lefevre <email address hidden>
Cc: <email address hidden>, <email address hidden>, "~suv" <email address hidden>
Subject: Re: inkscape: No letter spacing, incorrect glyphs in some fonts
Date: Wed, 9 Feb 2011 19:16:14 +0000
Thanks for the update, Vincent. Which upstream version of Inkscape
were you using? 0.48.0?

The image renders fine for me in inkscape_0.48.0-1ubuntu1.

On 9 February 2011 17:09, Vincent Lefevre <email address hidden> wrote:
> found 446688 0.47.0-2+b1
> thanks
>
> Note: 0.47.0-2+b1 is currently the latest version from unstable.
>
> On 2011-02-09 11:33:29 +0000, Alex Valavanis wrote:
>> If you still experience the problem, please could you attach a sample file?
>
> vlefevre.svg is the source file.
>
> vlefevre.pdf is the correct PDF file (exported from SVG with upstream
> inkscape under Mac OS X).
>
> vlefevre2.pdf is what I obtain under Debian.
>
> --
> Vincent Lefèvre <email address hidden> - Web: <http://www.vinc17.net/>
> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
> Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
>

Message #36 received at <email address hidden> (full text, mbox, reply):

From: Vincent Lefevre <email address hidden>
To: Alex Valavanis <email address hidden>
Cc: <email address hidden>, <email address hidden>, ~suv <email address hidden>
Subject: Re: inkscape: No letter spacing, incorrect glyphs in some fonts
Date: Wed, 9 Feb 2011 20:21:51 +0100
On 2011-02-09 19:16:14 +0000, Alex Valavanis wrote:
> Thanks for the update, Vincent. Which upstream version of Inkscape
> were you using? 0.48.0?

0.45.1 (it's written in the .svg file).

--
Vincent Lefèvre <email address hidden> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)

Tags: fonts
Revision history for this message
Alex Valavanis (valavanisalex) wrote :
Revision history for this message
Alex Valavanis (valavanisalex) wrote :
Revision history for this message
Alex Valavanis (valavanisalex) wrote :
Changed in inkscape (Debian):
status: Unknown → Confirmed
Revision history for this message
jazzynico (jazzynico) wrote :

Not reproduced on Windows XP (32bits), Inkscape 0.47, 0.48.5 and trunk rev. 13901.

Revision history for this message
jazzynico (jazzynico) wrote :

Not reproduced on Crunchbang Waldorf (Debian stable based distro), with Inkscape 0.48.3.1 and trunk rev. 13904.
I'm closing the report as Fix Released, but don't hesitate to reopen if you run into the same issue with a recent Inkscape version.

Changed in inkscape:
importance: Undecided → Medium
status: New → Fix Released
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Reopening following comment from downstream reporter:

Vincent Lefevre <email address hidden>
19:51 (0 minutes ago)

to 446688, me
Control: reopen -1
Control: found -1 0.48.5-3

On 2015-02-09 17:34:07 +0000, Alex Valavanis wrote:
> The upstream developers believe this bug was fixed upstream sometime
> before 0.48.3.1-1. Please feel free to reopen if it's still present in
> more recent versions.

I started to write that I could no longer reproduce the bug... until
I remembered that font config could have some effect, which was
confirmed when I looked at fonts used in the generated PDF file.

If I use

<alias binding="same">
  <family>Helvetica</family>
  <prefer>
    <family>Arial</family>
  </prefer>
</alias>

in my ~/.config/fontconfig/fonts.conf file, then everything is fine.
But if I do not use this, then the spacing is wrong when I open the
SVG file in inkscape.

Note: I initially used the above code to avoid bitmap fonts. Indeed,
without the above code:

$ fc-match Helvetica
helvR12-ISO8859-1.pcf.gz: "Helvetica" "Regular"

and with the above code:

$ fc-match Helvetica
Arial.ttf: "Arial" "Normal"

Changed in inkscape:
status: Fix Released → New
Revision history for this message
Vincent Lefevre (vincent-vinc17-net) wrote :

Bug reproducible with inkscape 0.91-12 Debian package after removing the /etc/fonts/conf.d/70-no-bitmaps.conf symbolic link.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.