Dear list members
I'm using CairoPDF to generate PDF (because of its font embedding and
support for transparent colours). However, at least on my (Windows)
system, the text it outputs seems to have completely wrong kerning.
Here's an example:
CairoPDF("test.pdf")
plot(rnorm(100),xlab="Ovreset")
dev.off()
The v is (slightly) too far away from the O, it's much too close to the
r, partially overlapping it, and the e is too far away from the s.
Can anyone reproduce it? Any ideas what's causing it, if it's possible
to fix it, or if just a bug in CairoPDF. I remember a kerning-related
change in R 2.9.0. Could that be related?
> sessionInfo()
R version 2.10.0 (2009-10-26)
i386-pc-mingw32
locale:
[1] LC_COLLATE=Norwegian-Nynorsk_Norway.1252
[2] LC_CTYPE=Norwegian-Nynorsk_Norway.1252
[3] LC_MONETARY=Norwegian-Nynorsk_Norway.1252
[4] LC_NUMERIC=C
[5] LC_TIME=Norwegian-Nynorsk_Norway.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] Cairo_1.4-5
loaded via a namespace (and not attached):
[1] tools_2.10.0
--
Karl Ove Hufthammer
Karl Ove Hufthammer wrote:> I'm using CairoPDF to generate PDF (because of its font embedding and > support for transparent colours). However, at least on my (Windows) > system, the text it outputs seems to have completely wrong kerning. > Here's an example: > > CairoPDF("test.pdf") > plot(rnorm(100),xlab="Ovreset") > dev.off() > > The v is (slightly) too far away from the O, it's much too close to the > r, partially overlapping it, and the e is too far away from the s.For the record, there are no problems with R 2.9.2 on my Mandriva Linux 2010 system. But it?s a different font which gets embedded (Liberation Sans on Linux vs. Arial on Windows). -- Karl Ove Hufthammer E-mail: karl at huftis.org Jabber: huftis at jabber.no
Maybe Matching Threads
- R on Windows crashes when using certain characters in strings in data frames (PR#14125)
- Border width on symbols plotted with the lattice package
- Problem with greek "beta" symbol in plot using CairoPDF (Windows)
- Greek letters in CairoPDF
- CairoPDF and greek letter spacing