[Upstream] LibreOffice printing and PDF exports mishandle some accentuated characters with lmodern fonts

Bug #928707 reported by Sébastien Maccagnoni-Munch
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
LibreOffice
Invalid
Medium
libreoffice (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

1) lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10

2) apt-cache policy libreoffice-writer
libreoffice-writer:
  Installed: 1:3.4.4-0ubuntu1
  Candidate: 1:3.4.4-0ubuntu1
  Version table:
 *** 1:3.4.4-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main i386 Packages
        100 /var/lib/dpkg/status
     1:3.4.3-3ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages

apt-cache policy lmodern
lmodern:
  Installed: 2.004.1-3
  Candidate: 2.004.1-3
  Version table:
 *** 2.004.1-3 0
        500 http://us.archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages
        100 /var/lib/dpkg/status

apt-cache policy evince
evince:
  Installed: 3.2.1-0ubuntu2.2
  Candidate: 3.2.1-0ubuntu2.2
  Version table:
 *** 3.2.1-0ubuntu2.2 0
        500 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main i386 Packages
        100 /var/lib/dpkg/status
     3.2.0-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages

apt-cache policy acroread
acroread:
  Installed: 9.4.7-1oneiric1
  Candidate: 9.4.7-1oneiric1
  Version table:
 *** 9.4.7-1oneiric1 0
        500 http://archive.canonical.com/ubuntu/ oneiric/partner i386 Packages
        100 /var/lib/dpkg/status

3) What is expected to happen in LibreOffice Writer via the Terminal:

cd ~/Desktop && wget -c https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/928707/+attachment/2729211/+files/ubuntu-bug-928707.odt -O example.odt && lowriter -nologo example.odt

export to PDF, open in Adobe Reader or Evince and it looks as it does in Writer.

4) What happens instead is the PDF looks mis-exported as per attached screenshot: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/928707/+attachment/2723326/+files/lmodern.png

Reproducible in:

lsb_release -rd
Description: Ubuntu precise (development branch)
Release: 12.04

apt-cache policy lmodern
lmodern:
  Installed: 2.004.1-3.1ubuntu1
  Candidate: 2.004.1-3.1ubuntu1
  Version table:
 *** 2.004.1-3.1ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
        100 /var/lib/dpkg/status

apt-cache policy libreoffice-writer
libreoffice-writer:
  Installed: 1:3.5.0~beta2-2ubuntu4
  Candidate: 1:3.5.0~beta2-2ubuntu4
  Version table:
 *** 1:3.5.0~beta2-2ubuntu4 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
        100 /var/lib/dpkg/status

apt-cache policy evince
evince:
  Installed: 3.3.5-0ubuntu1
  Candidate: 3.3.5-0ubuntu1
  Version table:
 *** 3.3.5-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
        100 /var/lib/dpkg/status

---
ApportVersion: 1.23-0ubuntu4
Architecture: i386
DistroRelease: Ubuntu 11.10
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
Package: lmodern 2.004.1-3
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 3.0.0-15.26-generic 3.0.13
Tags: oneiric
Uname: Linux 3.0.0-15-generic i686
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare vboxusers

Revision history for this message
Sébastien Maccagnoni-Munch (tiramiseb) wrote :
Revision history for this message
penalvch (penalvch) wrote :

Sébastien Maccagnoni-Munch, thank you for reporting this and helping make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal:
apport-collect 928707
When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.
As well, could you please attach an example Writer file, that when exported to PDF, demonstrates this problem?

Changed in libreoffice (Ubuntu):
status: New → Incomplete
Revision history for this message
Sébastien Maccagnoni-Munch (tiramiseb) wrote : Dependencies.txt

apport information

tags: added: apport-collected oneiric
description: updated
Revision history for this message
Sébastien Maccagnoni-Munch (tiramiseb) wrote : Re: LibreOffice printing and PDF exports mishandle some accentuated characters with lmodern fonts

Joining an ODT file

Revision history for this message
Sébastien Maccagnoni-Munch (tiramiseb) wrote :

Joining the resulting PDF file.

Some characters are ok, others have the described problem. Especially "ê". I think I saw other characters with the same problem, but I don't remember which ones, ans I'm not 100% sure.

Changed in libreoffice (Ubuntu):
status: Incomplete → New
penalvch (penalvch)
description: updated
no longer affects: lmodern (Ubuntu)
penalvch (penalvch)
description: updated
Revision history for this message
penalvch (penalvch) wrote :

Sébastien Maccagnoni-Munch, the issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at http://wiki.documentfoundation.org/BugReport . If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

description: updated
Changed in libreoffice (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Changed in df-libreoffice:
status: New → Incomplete
Revision history for this message
In , Sébastien Maccagnoni-Munch (tiramiseb) wrote :

Created attachment 57098
image containing two screenshots, one of a document in LibreOffice, the other one of Evince, the Ubuntu PDF viewer, with the document exported from LibreOffice

Problem description:

When using some accentuated characters with any of the lmodern fonts in LibreOffice, printed pages and PDF exports include bogus characters. See attached image/screenshots.

Steps to reproduce:
1. Create a document using any "Latin Modern" font (for example from "lmodern" package in Ubuntu)
2. Use many accentuated characters in this document (especially "ê")
3. Export the document to PDF or print it.

Current behavior:

Some characters (especially "ê") are not correctly exported/printed.

Expected behavior:

Characters are correctly exported/printed.

Browser: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.7 (KHTML, like Gecko) Ubuntu/11.10 Chromium/16.0.912.77 Chrome/16.0.912.77 Safari/535.7

Revision history for this message
In , Sébastien Maccagnoni-Munch (tiramiseb) wrote :

Created attachment 57099
This ODT file contains a text (in french) which uses accentuated characters, in different fonts.

Revision history for this message
In , Sébastien Maccagnoni-Munch (tiramiseb) wrote :

Created attachment 57100
This PDF file is the result of the previously attached ODT file.

Revision history for this message
Sébastien Maccagnoni-Munch (tiramiseb) wrote :
Revision history for this message
In , penalvch (penalvch) wrote :

Reproducible in:

lsb_release -rd
Description: Ubuntu precise (development branch)
Release: 12.04

apt-cache policy lmodern
lmodern:
  Installed: 2.004.1-3.1ubuntu1
  Candidate: 2.004.1-3.1ubuntu1
  Version table:
 *** 2.004.1-3.1ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
        100 /var/lib/dpkg/status

apt-cache policy libreoffice-writer
libreoffice-writer:
  Installed: 1:3.5.0~beta2-2ubuntu4
  Candidate: 1:3.5.0~beta2-2ubuntu4
  Version table:
 *** 1:3.5.0~beta2-2ubuntu4 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
        100 /var/lib/dpkg/status

apt-cache policy evince
evince:
  Installed: 3.3.5-0ubuntu1
  Candidate: 3.3.5-0ubuntu1
  Version table:
 *** 3.3.5-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
        100 /var/lib/dpkg/status

Changed in df-libreoffice:
importance: Undecided → Unknown
status: Incomplete → Unknown
summary: - LibreOffice printing and PDF exports mishandle some accentuated
- characters with lmodern fonts
+ [Upstream] LibreOffice printing and PDF exports mishandle some
+ accentuated characters with lmodern fonts
Changed in df-libreoffice:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , Sébastien Maccagnoni-Munch (tiramiseb) wrote :

I've exported the LModern Type1 font from the Ubuntu "lmodern" package to the TrueType format (with instructions from http://www.vromans.org/johan/OOo/oofonts03.html).

When using this TTF export, the "ê" character is correctly exported to PDF and printed.

Revision history for this message
In , chris (ign-christian) wrote :

I can't reproduce that (though those fonts not installed), PDF export show same result as odt file. Perhaps it's been fixed.

LO 4.0.4.2 (Win7 32bit)
LO 3.6.6.2 (Ubuntu 12.04 32bit)

Revision history for this message
In , Sébastien Maccagnoni-Munch (tiramiseb) wrote :

I can't reproduce it either, with LibreOffice 4.0.2.2 from Ubuntu 13.04.

I've tried exporting the same ODT file to PDF with the same fonts package installed (lmodern), it works now.

Changed in df-libreoffice:
status: Confirmed → Invalid
Revision history for this message
penalvch (penalvch) wrote :
Changed in libreoffice (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
In , elijahbal (david-kremer-dk) wrote :

I am astonished this has been released with the last version since this bug makes the software barely usable as it is.

Here a screenshot of what is missing (essentially é,è, à and ê UTF8 chars).

Only the Nimbus family font seems concerned as far as my testing goes.

Here a screenshot made with the 5.1.1.3 libreoffice version and the Archlinux rolling release operating system.

http://pix.toile-libre.org/upload/original/1458485366.png

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.