Package: fontconfig
Version: 2.5.0-2
Severity: normal

Hi!

I'm going mad on a font configuration awkwardness I cannot understand
(nor solve!).

Let me explain the issue.

More or less at the time Debian etch was released (April 2007), I
installed Debian testing on an amd64 box and went on happily tracking
the testing branch (currently lenny).
On that box I can correctly visit websites with non-latin fonts (arabic,
cyrillic, greek, asian, armenian, indian, ...).  E.g.: I can view all the
language names (and corresponding localized pages) at the bottom of
http://www.debian.org/
This was tested with Galeon and Epiphany.  Great!

More recently I upgraded some old Debian sarge i386 boxes to etch and then
to testing (lenny).  One of them is the one I'm currently writing this
bug report from.  These boxes were originally installed long ago, when
Debian woody was the stable branch, and actually started as woody, then
were upgraded to sarge, and then, as already said, to etch and to testing
(lenny).  On those boxes, I can correctly visit websites with some
non-latin fonts (arabic, cyrillic, greek, armenian, indian), but not
other ones (asian: korean, japanese and chinese).  Non-working
fonts are displayed as squares containing their hexadecimal values.

OK, first thing I thought was a locale configuration problem.
But they seem to be identical on the recently installed box (where
everything works fine) and on the old upgraded boxes (where I cannot
display asian fonts):

  $ locale
  LANG=en_US.UTF-8
  LC_CTYPE="en_US.UTF-8"
  LC_NUMERIC="en_US.UTF-8"
  LC_TIME="en_US.UTF-8"
  LC_COLLATE="en_US.UTF-8"
  LC_MONETARY="en_US.UTF-8"
  LC_MESSAGES="en_US.UTF-8"
  LC_PAPER="en_US.UTF-8"
  LC_NAME="en_US.UTF-8"
  LC_ADDRESS="en_US.UTF-8"
  LC_TELEPHONE="en_US.UTF-8"
  LC_MEASUREMENT="en_US.UTF-8"
  LC_IDENTIFICATION="en_US.UTF-8"
  LC_ALL=

OK, second thing I thought was some missing font package on the old
boxes.

  [EMAIL PROTECTED] $ dpkg -l | grep font | cut -b 1-68
  ii  console-data                         2:1.05-1
  ii  console-tools                        1:0.2.3dbs-65.1
  ii  defoma                               0.11.10-0.2
  ii  fontconfig                           2.4.2-1.2
  ii  fontconfig-config                    2.5.0-2
  ii  gsfonts                              1:8.11+urwcyr1.0.7~pre43-2
  ii  gsfonts-x11                          0.20
  ii  libconsole                           1:0.2.3dbs-65.1
  ii  libfont-afm-perl                     1.19-1
  ii  libfontconfig1                       2.5.0-2
  ii  libfontenc1                          1:1.0.4-2
  ii  libfreetype6                         2.3.5-1+b1
  ii  libt1-5                              5.1.2-2
  ii  libxfont1                            1:1.3.2-1
  ii  libxft2                              2.1.12-2
  ii  lmodern                              1.010x-5
  ii  psfontmgr                            0.11.10-0.2
  ii  scalable-cyrfonts-tex                4.12
  ii  texlive-fonts-extra                  2007.dfsg.1-1
  ii  texlive-fonts-extra-doc              2007.dfsg.1-1
  ii  texlive-fonts-recommended            2007-13
  ii  texlive-fonts-recommended-doc        2007-13
  ii  ttf-dejavu-core                      2.23-1
  ii  ttf-dejavu-extra                     2.23-1
  ii  ttf-freefont                         20060501cvs-12
  ii  x-ttcidfont-conf                     27
  ii  xfonts-100dpi                        1:1.0.0-4
  ii  xfonts-75dpi                         1:1.0.0-4
  ii  xfonts-base                          1:1.0.0-5
  ii  xfonts-cronyx-100dpi                 2.3.8-6
  ii  xfonts-cronyx-75dpi                  2.3.8-6
  ii  xfonts-cyrillic                      1:1.0.0-5
  ii  xfonts-encodings                     1:1.0.2-3
  ii  xfonts-scalable                      1:1.0.0-6
  ii  xfonts-terminus                      4.26-1
  ii  xfonts-terminus-oblique              4.26-1
  ii  xfonts-utils                         1:1.0.1-2

  [EMAIL PROTECTED] $ dpkg -l | grep font | cut -b 1-68
  ii  console-data                         2:1.05-1
  ii  console-tools                        1:0.2.3dbs-65.1
  ii  defoma                               0.11.10-0.2
  ii  fontconfig                           2.5.0-2
  ii  fontconfig-config                    2.5.0-2
  ii  gsfonts                              1:8.11+urwcyr1.0.7~pre43-2
  ii  gsfonts-x11                          0.20
  ii  libconsole                           1:0.2.3dbs-65.1
  ii  libfontconfig1                       2.5.0-2
  ii  libfontconfig1-dev                   2.5.0-2
  ii  libfontenc1                          1:1.0.4-2
  ii  libfreetype6                         2.3.5-1+b1
  ii  libfreetype6-dev                     2.3.5-1+b1
  ii  libt1-5                              5.1.2-2
  ii  libttf2                              1.4pre.cvs20060210-1
  ii  libxfont1                            1:1.3.2-1
  ii  libxft-dev                           2.1.12-2
  ii  libxft2                              2.1.12-2
  ii  lmodern                              1.010x-5
  ii  psfontmgr                            0.11.10-0.2
  ii  scalable-cyrfonts-tex                4.12
  ii  texlive-fonts-extra                  2007.dfsg.1-1
  ii  texlive-fonts-extra-doc              2007.dfsg.1-1
  ii  texlive-fonts-recommended            2007-13
  ii  texlive-fonts-recommended-doc        2007-13
  ii  ttf-dejavu-core                      2.23-1
  ii  ttf-dejavu-extra                     2.23-1
  ii  ttf-dustin                           20030517-6
  ii  ttf-freefont                         20060501cvs-12
  ii  ttf-opensymbol                       1:2.4.0-5
  ii  x-ttcidfont-conf                     27
  ii  xfonts-100dpi                        1:1.0.0-4
  ii  xfonts-75dpi                         1:1.0.0-4
  ii  xfonts-75dpi-transcoded              1:1.0.0-4
  ii  xfonts-base                          1:1.0.0-5
  ii  xfonts-cronyx-100dpi                 2.3.8-6
  ii  xfonts-cronyx-75dpi                  2.3.8-6
  ii  xfonts-cyrillic                      1:1.0.0-5
  ii  xfonts-encodings                     1:1.0.2-3
  ii  xfonts-nexus                         0.0.2-12
  ii  xfonts-scalable                      1:1.0.0-6
  ii  xfonts-terminus                      4.26-1
  ii  xfonts-terminus-oblique              4.26-1
  ii  xfonts-utils                         1:1.0.1-2

It turns out that the box where asian fonts are *not* correctly displayed
has *more* font packages installed than the other box!
Please note that the newer box (where everything works fine) has
even an older fontconfig version (because I put it on hold for
unrelated reasons...), yet it works fine.

I really cannot understand what's going on.
I never manually changed the font configuration (as far as I remember).

Checking differences between files in /etc/fonts in the two boxes
shows that everything is identical, except for
/etc/fonts/conf.d/30-defoma.conf
But why do these two files differ?
If it helps, I can send the two differing 30-defoma.conf files
(well, to be more precise, I can send the two files pointed by the two
30-defoma.conf symlinks...)

Indeed, it seems that the two boxes select different fonts for
the same request:

  [EMAIL PROTECTED] $ fc-match sans-serif
  Bitstream-Vera-Sans.ttf: "Bitstream Vera Sans" "Roman"
  [EMAIL PROTECTED] $ fc-match serif
  Bitstream-Vera-Serif.ttf: "Bitstream Vera Serif" "Roman"
  [EMAIL PROTECTED] $ LC_ALL=zh-CN fc-match sans-serif
  18x18ja.pcf.gz: "Fixed" "ja"
  [EMAIL PROTECTED] $ LC_ALL=zh-CN fc-match serif
  18x18ja.pcf.gz: "Fixed" "ja"

  [EMAIL PROTECTED] $ fc-match sans-serif
  Vera.ttf: "Bitstream Vera Sans" "Roman"
  [EMAIL PROTECTED] $ fc-match serif
  VeraSe.ttf: "Bitstream Vera Serif" "Roman"
  [EMAIL PROTECTED] $ LC_ALL=zh-CN fc-match sans-serif
  Vera.ttf: "Bitstream Vera Sans" "Roman"
  [EMAIL PROTECTED] $ LC_ALL=zh-CN fc-match serif
  VeraSe.ttf: "Bitstream Vera Serif" "Roman"

Which is kinda strange, because in bug #352378 it is claimed that
Bitstream Vera is a better choice.  My experience is quite the
opposite: I cannot see asian fonts on the box that seems to
choose Bitstream Vera...

OK, now I am really lost.
After this *long* bug report, can you help me?
Is this a bug in the configuration handling by fontconfig?
Is there a manual workaround?  How can I fix the configuration of
the old upgraded boxes?

Thanks for any help.


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages fontconfig depends on:
ii  defoma                 0.11.10-0.2       Debian Font Manager -- automatic f
ii  fontconfig-config      2.5.0-2           generic font configuration library
ii  libc6                  2.7-10            GNU C Library: Shared libraries
ii  libexpat1              1.95.8-4          XML parsing C library - runtime li
ii  libfontconfig1         2.5.0-2           generic font configuration library
ii  libfreetype6           2.3.5-1+b1        FreeType 2 font engine, shared lib
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

fontconfig recommends no packages.

-- debconf information:
* fontconfig/subpixel_rendering: Automatic
* fontconfig/enable_bitmaps: true
* fontconfig/hinting_type: Native



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

Reply via email to