Hello to the list,
I noticed something that it seems weird to me with postscript device in
dev.print function.
Suppose this little code:
x<-1:10
par(family="sans")
plot(x, main="main")
Using dev.print with pdf device brings no problem
dev.print(device=pdf, file="test.pdf")
But using postscript device
dev.print(device=postscript, file="test.ps")
I get the following outcome
Error in dev.copy(device = function (file = ifelse(onefile,
"Rplots.ps", :
family 'sans' not included in PostScript device
However family sans is already declared as in pdf (nothing changed to the
original configuration of R)
names(postscriptFonts()) and names(pdfFonts()) give:
[1] "serif" "sans"
"mono"
[4] "symbol" "AvantGarde"
"Bookman"
[7] "Courier" "Helvetica"
"Helvetica-Narrow"
[10] "NewCenturySchoolbook" "Palatino"
"Times"
[13] "URWGothic" "URWBookman"
"NimbusMon"
[16] "NimbusSan" "URWHelvetica"
"NimbusSanCond"
[19] "CenturySch" "URWPalladio"
"NimbusRom"
[22] "URWTimes" "ComputerModern"
"ComputerModernItalic"
[25] "Japan1" "Japan1HeiMin"
"Japan1GothicBBB"
[28] "Japan1Ryumin" "Korea1"
"Korea1deb"
[31] "CNS1" "GB1"
The problem also reproduced with 2.4.1 and by other people.
If i do not use the family option and use dev.print I do not have any
problem. Also using postscript("test.ps", family="sans") and
then plotting
gives me no problem). The problem is only with dev.print if previously
declared a family for X11 device.
Is there any idea why this happens?
My sessionInfo() is this
sessionInfo()
R version 2.5.0 Under development (unstable) (2007-02-01 r40632)
i686-pc-linux-gnu
locale:
LC_CTYPE=el_GR.UTF-8;LC_NUMERIC=C;LC_TIME=el_GR.UTF-8;LC_COLLATE=el_GR.UTF-8;LC_MONETARY=el_GR.UTF-8;LC_MESSAGES=el_GR.UTF-8;LC_PAPER=el_GR.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=el_GR.UTF-8;LC_IDENTIFICATION=C
attached base packages:
[1] "stats" "graphics" "grDevices"
"utils" "datasets" "methods"
[7] "base"
Thank you for your time,
Regards,
I. Soumpasis
[[alternative HTML version deleted]]