Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing ZapfDingbats on Windows #19

Open
rdatasculptor opened this issue Sep 5, 2017 · 1 comment
Open

Missing ZapfDingbats on Windows #19

rdatasculptor opened this issue Sep 5, 2017 · 1 comment

Comments

@rdatasculptor
Copy link

rdatasculptor commented Sep 5, 2017

I tried to convert a pdf image to png. Everythings seems to go well, except for some dots that are no longer visible in the png.

netherlands_pdf.pdf

I posted this problem on SO.

`R version 3.3.2 (2016-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server 2008 R2 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=Dutch_Netherlands.1252  LC_CTYPE=Dutch_Netherlands.1252    LC_MONETARY=Dutch_Netherlands.1252
[4] LC_NUMERIC=C                       LC_TIME=Dutch_Netherlands.1252    
@jeroen
Copy link
Member

jeroen commented Sep 6, 2017

OK I understand the problem now. The ?pdf manual explains the useDingbats parameter:

useDingbats: Should small circles be rendered via the Dingbats font? Defaults to TRUE, which produces smaller and better output. Setting this to FALSE can work around font display problems in broken PDF viewers: although this font is one of the 14 guaranteed to be available in all PDF viewers, that guarantee is not always honoured.

The problem is that windows does not have the proper dingbats font. I'll see if there is a way to provide a fallback. For the workaround is to use pdf(... useDingbats = FALSE).

@jeroen jeroen changed the title Something strange happens when converting pdf to png Missing ZapfDingbats on Windows Sep 6, 2017
@ropensci ropensci deleted a comment from rdatasculptor Sep 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants