Bug 266187 - Okular draws 'q' for '°' in R diagram
Summary: Okular draws 'q' for '°' in R diagram
Status: CLOSED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.11.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-13 10:26 UTC by Tobias Lippert
Modified: 2011-02-13 14:07 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
pdf causing the error (19.24 KB, application/pdf)
2011-02-13 10:26 UTC, Tobias Lippert
Details

Note You need to log in before you can comment on or make changes to this bug.
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>