pdftools
pdftools copied to clipboard
Missing ZapfDingbats on Windows
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.
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
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)
.