On Thu, 2009-01-22 at 15:08 +0000, Brian D Ripley wrote: > On Thu, 22 Jan 2009, Gavin Simpson wrote: > > > On Thu, 2009-01-22 at 15:21 +0100, Martin Maechler wrote: > >>>>>>> "TZ" == T Zumbrunn <t.zumbr...@unibas.ch> > >>>>>>> on Thu, 22 Jan 2009 14:52:37 +0100 writes: > >> > >> TZ> Quoting Brian D Ripley <rip...@stats.ox.ac.uk>: > >> >> On Thu, 22 Jan 2009, Robin Hankin wrote: <snip /> > > > I'd be happy to patch any/all of those sources if someone in R Core > > would be willing to take a lot and possibly apply them? > > Send them to me and I'll take a look.
Thanks Brian, Attached is a patch to pdf.Rd against the SVN trunk, revision 47685, which modifies the emphasis in the useDingbats argument and adds information about the workaround on unix systems only. Please edit/use as you see fit. If this is sufficient to document the issue and workaround I won't patch R-admin.texi as there doesn't appear to be anywhere suitable to insert this note in that file - most platform specific information appears to pertain to /building/ R not tweaking your system to work around a problem whilst using R. In case the attachment gets mangled somewhere on long the line, you can grab the patch from: http://www.homepages.ucl.ac.uk/~ucfagls/files/pdf.Rd.patch All the best, Gavin > > > > > All the best, > > > > G > > > >> > >> > >> > >> >>> le112:~/scratch/R-2.8.1% R --vanilla --quiet > >> >>>> pdf(file='~/f.pdf') > >> >>>> plot(1:10 , pch=1) > >> >>>> dev.off() > >> >>> null device > >> >>> 1 > >> >>>> sessionInfo() > >> >>> R version 2.8.1 (2008-12-22) > >> >>> i686-pc-linux-gnu > >> >>> > >> >>> locale: > >> >>> > >> LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C > >> >>> > >> >>> attached base packages: > >> >>> [1] stats graphics grDevices utils datasets methods > >> >>> base > q() > >> >>> le112:~/scratch/R-2.8.1% > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> -- > >> >>> Robin K. S. Hankin > >> >>> Uncertainty Analyst > >> >>> University of Cambridge > >> >>> 19 Silver Street > >> >>> Cambridge CB3 9EP > >> >>> 01223-764877 > >> >>> > >> >>> ______________________________________________ > >> >>> r-h...@r-project.org mailing list > >> >>> https://stat.ethz.ch/mailman/listinfo/r-help > >> >>> PLEASE do read the posting guide > >> http://www.R-project.org/posting-guide.html > >> >>> and provide commented, minimal, self-contained, reproducible code. > >> >>> > >> >> > >> >> -- > >> >> Brian D. Ripley, rip...@stats.ox.ac.uk > >> >> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ > >> >> University of Oxford, Tel: +44 1865 272861 (self) > >> >> 1 South Parks Road, +44 1865 272866 (PA) > >> >> Oxford OX1 3TG, UK Fax: +44 1865 272595 > >> >> > >> >> ______________________________________________ > >> >> r-h...@r-project.org mailing list > >> >> https://stat.ethz.ch/mailman/listinfo/r-help > >> >> PLEASE do read the posting guide > >> http://www.R-project.org/posting-guide.html > >> >> and provide commented, minimal, self-contained, reproducible code. > >> > >> TZ> ______________________________________________ > >> TZ> r-h...@r-project.org mailing list > >> TZ> https://stat.ethz.ch/mailman/listinfo/r-help > >> TZ> PLEASE do read the posting guide > >> http://www.R-project.org/posting-guide.html > >> TZ> and provide commented, minimal, self-contained, reproducible code. > >> > >> ______________________________________________ > >> r-h...@r-project.org mailing list > >> https://stat.ethz.ch/mailman/listinfo/r-help > >> PLEASE do read the posting guide > >> http://www.R-project.org/posting-guide.html > >> and provide commented, minimal, self-contained, reproducible code. > > -- > > %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% > > Dr. Gavin Simpson [t] +44 (0)20 7679 0522 > > ECRC, UCL Geography, [f] +44 (0)20 7679 0565 > > Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk > > Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/ > > UK. WC1E 6BT. [w] http://www.freshwaters.org.uk > > %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% > > > > ______________________________________________ > > R-devel@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-devel > > > -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Dr. Gavin Simpson [t] +44 (0)20 7679 0522 ECRC, UCL Geography, [f] +44 (0)20 7679 0565 Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/ UK. WC1E 6BT. [w] http://www.freshwaters.org.uk %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Index: ../src/library/grDevices/man/pdf.Rd =================================================================== --- ../src/library/grDevices/man/pdf.Rd (revision 47685) +++ ../src/library/grDevices/man/pdf.Rd (working copy) @@ -70,8 +70,13 @@ \code{"cmyk"}. Defaults to \code{"rgb"}.} \item{useDingbats}{logical. Should small circles be rendered \emph{via} the Dingbats font? Defaults to true, which produces - smaller and better output -- this is provided for those who insist - on using broken PDF viewers.} + smaller and better output. Setting this to false, whilst producing + larger output, can work around font display problems in broken PDF + viewers. +#ifdef unix + See Note below for a system-wide fix. +#endif + } \item{useKerning}{logical. Should kerning corrections be included in setting text and calculating string widths? Defaults to \code{TRUE}.} } @@ -202,6 +207,23 @@ be needed for the full use of encodings other than Latin-1. See \url{http://www.adobe.com/products/acrobat/acrrasianfontpack.html} for Reader 5.x to 8.x, and Updates on \url{http://www.adobe.com} for 9.x. + +#ifdef unix + On some systems the default plotting character \code{pch = 1} is + displayed in some PDF viewers incorrectly as a \code{"q"} + character. This may be due to incorrect or incomplete mapping of font + names to those used by the system. + + The following may be added to + \file{\eqn{\mbox{\textasciitilde}}{~}/.fonts.conf} or + \file{/etc/fonts/local.conf} to work around this problem. + \preformatted{ +<alias binding="same"> + <family>ZapfDingbats</family> + <accept><family>Dingbats</family></accept> +</alias> + } +#endif } \seealso{ \code{\link{pdfFonts}}, \code{\link{pdf.options}},
______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel