Bug 71274 - Bad font rendering
Summary: Bad font rendering
Status: RESOLVED NOTABUG
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-05 17:36 UTC by abmelden22
Modified: 2013-11-08 16:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
The PDF file metioned in the bug description (516.59 KB, application/pdf)
2013-11-05 17:36 UTC, abmelden22
Details

Description abmelden22 2013-11-05 17:36:22 UTC
Created attachment 88723 [details]
The PDF file metioned in the bug description

This document I have attached looks fine on Windows with Adobe Reader and on Linux with gv and pdfedit, but it looks creepy in evince and okular, so I suspect poppler to misinterpret some font meta-information. I run Arch Linux on x86_64. Here are some screenshots:

http://imageshack.us/photo/my-images/202/n7p0.png/
http://imageshack.us/photo/my-images/35/ijoi.png/
http://imageshack.us/photo/my-images/594/jtk7.png/
http://imageshack.us/photo/my-images/856/rcsp.png/
Comment 1 kurt.pfeifle 2013-11-07 18:59:04 UTC
@reporter: I can not identify from the screenshots what exactly you are rating as "looking creepy".

Also, on my currently used Mac system the uploaded PDF seems to render just fine with gv, Ghostscript, Preview.app, Adobe Acrobat Professional, callas pdfToolbox, evince, mupdf-x11 and oKular.

But I can see from your uploaded PDF, that it does not have all fonts embedded. 'Arial' and 'Arial,Bold' are missing. Also 'pdffonts' notes that fontconfig complains about a problem with one of the embedded fonts:

 pdffonts poppler-bug-#88723.pdf 
   Fontconfig warning: ignoring UTF-8: not a valid region tag
  name              type              encoding     emb sub uni object ID
  ----------------- ----------------- ------------ --- --- --- ---------
  Arial             TrueType          WinAnsi      no  no  no       5  0
  ABCDEE+Verdana    TrueType          WinAnsi      yes yes no       7  0
  Arial             CID TrueType      Identity-H   yes no  yes     13  0
  Symbol            CID TrueType      Identity-H   yes no  yes     18  0
  Arial,Bold        TrueType          WinAnsi      no  no  no      29  0
  Arial,Bold        CID TrueType      Identity-H   yes no  yes     54  0

On my local system, I do have appropriate replacement fonts available:

 pdffonts -subst poppler-bug-#88723.pdf 
   Fontconfig warning: ignoring UTF-8: not a valid region tag
   name         object ID substitute font substitute font file
   ------------ --------- --------------- -----------------------------
   Arial             5  0 Arial           /Library/Fonts/Arial.ttf
   Arial,Bold       29  0 Arial Negreta   /Library/Fonts/Arial Bold.ttf

You should run this last command on your system to see which substitute font Poppler/fontconfig do use for the too missing ones. Maybe these are responsible for your "creepy look".

Two points:

  1. To solve this problem for real, you need to recreate the PDF in question
     and ensure all used fonts are properly embedded.

  2. Since this real solution is not always possible (you haven't created the
     PDF yourself, but downloaded it from the internet, f.e.), you can try it
     with a workaround:
      - install the proper replacement fonts
      - set up fontconfig so that it makes use of these replacement fonts.
Comment 2 abmelden22 2013-11-08 16:09:30 UTC
OK, I probably reported the bug too early. If you say it is because of 
my font setup, then I will have to check that. What I actually meant was 
bad kerning, I thought I had said that, sorry. Thank you!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.