Bug 46109 - PDF export and printing *fails* with UTF-8 characters when using the Nimbus family fonts
Summary: PDF export and printing *fails* with UTF-8 characters when using the Nimbus f...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
5.1.2.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-15 07:07 UTC by Sébastien Maccagnoni-Munch
Modified: 2016-04-20 10:33 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
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 (48.08 KB, image/png)
2012-02-15 07:07 UTC, Sébastien Maccagnoni-Munch
Details
This ODT file contains a text (in french) which uses accentuated characters, in different fonts. (9.46 KB, application/vnd.oasis.opendocument.text)
2012-02-15 07:09 UTC, Sébastien Maccagnoni-Munch
Details
This PDF file is the result of the previously attached ODT file. (451.63 KB, application/pdf)
2012-02-15 07:09 UTC, Sébastien Maccagnoni-Munch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sébastien Maccagnoni-Munch 2012-02-15 07:07:59 UTC
Created attachment 57098 [details]
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
Comment 1 Sébastien Maccagnoni-Munch 2012-02-15 07:09:25 UTC
Created attachment 57099 [details]
This ODT file contains a text (in french) which uses accentuated characters, in different fonts.
Comment 2 Sébastien Maccagnoni-Munch 2012-02-15 07:09:58 UTC
Created attachment 57100 [details]
This PDF file is the result of the previously attached ODT file.
Comment 3 Chris Peñalver 2012-02-15 17:31:20 UTC
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
Comment 4 Sébastien Maccagnoni-Munch 2012-03-26 01:50:46 UTC
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.
Comment 5 ign_christian 2013-07-02 03:59:54 UTC
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)
Comment 6 Sébastien Maccagnoni-Munch 2013-07-02 06:11:04 UTC
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.
Comment 7 David Kremer 2016-03-20 14:56:53 UTC
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