Bug 266187

Summary: Okular draws 'q' for '°' in R diagram
Product: [Applications] okular Reporter: Tobias Lippert <lippert.tobias>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: CLOSED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 0.11.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: pdf causing the error

Description Tobias Lippert 2011-02-13 10:26:28 UTC
Created attachment 57203 [details]
pdf causing the error

Version:           0.11.2 (using KDE 4.5.5) 
OS:                Linux

Hello,
I have generated a diagram with R and displayed it in okular and acrobat reader.
The diagram is displayed correctly in acroreader, but in okular there are letters instead of the circles that I want.
If I convert the file with pdf2ps, okular shows the postscript file correclty.

Reproducible: Always
Comment 1 Albert Astals Cid 2011-02-13 13:19:21 UTC
Not a bug, if you do not get circles is because the PDF is using the ZapfDingbats font without embedding it. You probably don't have the ZapfDingbats font in your system and thus fontconfig just gives us the default font.

As a solution either install the ZapfDingbats font or have a look at http://freedesktop.org/wiki/Software/poppler for how to setup a fontconfig font substitution rule for that font.
Comment 2 Tobias Lippert 2011-02-13 13:59:10 UTC
Okay, I understand the problem, but why are Acrobat Reader (and Chrome btw.) rendering the graphics correctly, but not okular?
Comment 3 Albert Astals Cid 2011-02-13 14:03:20 UTC
Because they don't use fontconfig (are not really integrated linux apps) and because they ship their own private fonts not available to the rest of the system.
Comment 4 Tobias Lippert 2011-02-13 14:07:24 UTC
I did not realize that this was a problem with fontconfig. Google helped me pretty quickly to find the right solution. I just had to add the following lines to ~/.font.conf
Thank you very much

<alias binding="same">
       <family>ZapfDingbats</family>
       <accept><family>Dingbats</family></accept>
       <family>Symbol</family>
       <accept><family>Standard Symbols L</family></accept>
</alias>