Public bug reported:

Binary package hint: evince

When the font path contains a directory with a (reported invalid) 'DejaVu Sans' 
font, the menu and dialog boxes are unreadable (boxes appear everywhere instead 
of letters LANG=fr_FR.utf8).
The font path may contain such a font in a dual boot system when the user has 
prepended a Windows "Fonts" directory to the font path (by linking it to 
~/.fonts) and the DejaVu font is installed there (probably by OpenOffice.org 
3.2 for Windows).

When the Windows Fonts directory is removed from the font path, evince
is ok.

No such problem with other applications (Firefox, Gvim, OOo, gedit,
Inkscape, Gimp).

Expected behavior
-----------------------
If the font is really invalid, it should be skipped and a valid one (which in 
my case in available in the standard font path) should be loaded instead.

Diagnostics
--------------
Here is the evince stderr output:

(evince:11361): Pango-WARNING **: failed to create cairo scaled font,
expect ugly output. the offending font is 'DejaVu Sans 9.9990234375'

(evince:11361): Pango-WARNING **: font_face status is: out of memory

(evince:11361): Pango-WARNING **: scaled_font status is: out of memory

(evince:11361): Pango-WARNING **: shaping failure, expect ugly output.
shape-engine='BasicEngineFc', font='DejaVu Sans 9.9990234375', text='●'

(evince:11361): Pango-WARNING **: failed to create cairo scaled font,
expect ugly output. the offending font is 'DejaVu Sans 9.9990234375'

(evince:11361): Pango-WARNING **: font_face status is: <unknown error
status>

(evince:11361): Pango-WARNING **: scaled_font status is: out of memory

Environment details
-------------------------

This is a dual boot system with Windows 7.
I have my Windows font directory linked in my environment to make all Windows 
fonts available in the Ubuntu environment:
   ln -s /media/sda1/Windows/Fonts $HOME/.fonts
   ls $HOME/.fonts/Deja*
Note that the file time AND file size of the fonts on the Ubuntu system are 
exactly the same as on Windows. However the content differ (checked with 'sum').

$ ls -l /media/win7/Windows/Fonts/Deja*
-rwxrwx--- 2 root plugdev   524056 2009-08-27 16:26 DejaVuSans-BoldOblique.ttf
-rwxrwx--- 2 root plugdev   573136 2009-08-27 16:26 DejaVuSans-Bold.ttf
-rwxrwx--- 2 root plugdev   493196 2009-08-27 16:26 
DejaVuSansCondensed-BoldOblique.ttf
-rwxrwx--- 2 root plugdev   534464 2009-08-27 16:26 DejaVuSansCondensed-Bold.ttf
-rwxrwx--- 2 root plugdev   488440 2009-08-27 16:26 
DejaVuSansCondensed-Oblique.ttf
-rwxrwx--- 2 root plugdev   544636 2009-08-27 16:26 DejaVuSansCondensed.ttf
-rwxrwx--- 2 root plugdev   329412 2009-08-27 16:26 DejaVuSans-ExtraLight.ttf
-rwxrwx--- 2 root plugdev   223408 2009-08-27 16:26 
DejaVuSansMono-BoldOblique.ttf
-rwxrwx--- 2 root plugdev   301928 2009-08-27 16:26 DejaVuSansMono-Bold.ttf
-rwxrwx--- 2 root plugdev   229284 2009-08-27 16:26 DejaVuSansMono-Oblique.ttf
-rwxrwx--- 2 root plugdev   321524 2009-08-27 16:26 DejaVuSansMono.ttf
-rwxrwx--- 2 root plugdev   523804 2009-08-27 16:26 DejaVuSans-Oblique.ttf
-rwxrwx--- 2 root plugdev   622280 2009-08-27 16:26 DejaVuSans.ttf
-rwxrwx--- 2 root plugdev   294244 2009-08-27 16:26 DejaVuSerif-BoldItalic.ttf
-rwxrwx--- 2 root plugdev   306532 2009-08-27 16:26 DejaVuSerif-Bold.ttf
-rwxrwx--- 2 root plugdev   293472 2009-08-27 16:26 
DejaVuSerifCondensed-BoldItalic.ttf
-rwxrwx--- 2 root plugdev   282092 2009-08-27 16:26 
DejaVuSerifCondensed-Bold.ttf
-rwxrwx--- 2 root plugdev   301244 2009-08-27 16:26 
DejaVuSerifCondensed-Italic.ttf
-rwxrwx--- 2 root plugdev   295840 2009-08-27 16:26 DejaVuSerifCondensed.ttf
-rwxrwx--- 2 root plugdev   301828 2009-08-27 16:26 DejaVuSerif-Italic.ttf
-rwxrwx--- 2 root plugdev   328908 2009-08-27 16:26 DejaVuSerif.ttf

$ ls -l /usr/share/fonts/truetype/ttf-dejavu/
total 7952
-rw-r--r-- 1 root root 524056 2009-08-27 16:26 DejaVuSans-BoldOblique.ttf
-rw-r--r-- 1 root root 573136 2009-08-27 16:26 DejaVuSans-Bold.ttf
-rw-r--r-- 1 root root 493196 2009-08-27 16:26 
DejaVuSansCondensed-BoldOblique.ttf
-rw-r--r-- 1 root root 534464 2009-08-27 16:26 DejaVuSansCondensed-Bold.ttf
-rw-r--r-- 1 root root 488440 2009-08-27 16:26 DejaVuSansCondensed-Oblique.ttf
-rw-r--r-- 1 root root 544636 2009-08-27 16:26 DejaVuSansCondensed.ttf
-rw-r--r-- 1 root root 329408 2009-08-27 16:26 DejaVuSans-ExtraLight.ttf
-rw-r--r-- 1 root root 223408 2009-08-27 16:26 DejaVuSansMono-BoldOblique.ttf
-rw-r--r-- 1 root root 301928 2009-08-27 16:26 DejaVuSansMono-Bold.ttf
-rw-r--r-- 1 root root 229284 2009-08-27 16:26 DejaVuSansMono-Oblique.ttf
-rw-r--r-- 1 root root 321524 2009-08-27 16:26 DejaVuSansMono.ttf
-rw-r--r-- 1 root root 523804 2009-08-27 16:26 DejaVuSans-Oblique.ttf
-rw-r--r-- 1 root root 622280 2009-08-27 16:26 DejaVuSans.ttf
-rw-r--r-- 1 root root 294244 2009-08-27 16:26 DejaVuSerif-BoldItalic.ttf
-rw-r--r-- 1 root root 306532 2009-08-27 16:26 DejaVuSerif-Bold.ttf
-rw-r--r-- 1 root root 293472 2009-08-27 16:26 
DejaVuSerifCondensed-BoldItalic.ttf
-rw-r--r-- 1 root root 282092 2009-08-27 16:26 DejaVuSerifCondensed-Bold.ttf
-rw-r--r-- 1 root root 301244 2009-08-27 16:26 DejaVuSerifCondensed-Italic.ttf
-rw-r--r-- 1 root root 295840 2009-08-27 16:26 DejaVuSerifCondensed.ttf
-rw-r--r-- 1 root root 301828 2009-08-27 16:26 DejaVuSerif-Italic.ttf
-rw-r--r-- 1 root root 328908 2009-08-27 16:26 DejaVuSerif.ttf


The fonts have probably been installed in my Windows environment by 
OpenOffice.org 3.2 (but I'm not sure).

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: evince 2.30.3-0ubuntu1.1
ProcVersionSignature: Ubuntu 2.6.32-24.42-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic i686
Architecture: i386
Date: Sun Sep  5 21:14:26 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu-Netbook 10.04 "Lucid Lynx" - Release i386 (20100429.4)
ProcEnviron:
 PATH=(custom, user)
 LANG=fr_FR.utf8
 SHELL=/bin/bash
SourcePackage: evince

** Affects: evince (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 lucid ubuntu-une

-- 
Incompatibilty with Windows font Deja Vu Sans 9.9990234375 makes evince menu 
unreadable
https://bugs.launchpad.net/bugs/631088
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to evince in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to