From johannes_graumann at web.de  Thu Jan 24 23:00:58 2008
From: johannes_graumann at web.de (Johannes Graumann)
Date: Thu, 24 Jan 2008 22:00:58 +0000 (UTC)
Subject: [Rd] R CMD check and postscript fonts
Message-ID: <loom.20080124T214916-853@post.gmane.org>

Hello,
I came across this by using R cmd check - otherwise I would probably not have
noticed.
One of my functions does something like this:
# postscript()
# plot(1, xlim = c(0, 10), ylim = c(0, 4), type = "n", ann = FALSE, axes = FALSE)
# text(1:10, 2, c("a","b"), cex = seqcex, family="mono",font=2)

Which results in the error:
Error in text.default(1:10, 2, c("a", "b"), cex = seqcex, family = "mono",  : 
  family 'mono' not included in PostScript device

'mono' is perfectly fine for my x11 device and 
# postscriptFonts()$mono

gives me:
$family
[1] "Courier"

$metrics
[1] "Courier.afm"             "Courier-Bold.afm"       
[3] "Courier-Oblique.afm"     "Courier-BoldOblique.afm"
[5] "Symbol.afm"             

$encoding
[1] "default"

attr(,"class")
[1] "Type1Font"

That looks all right to me no? How to remedy this?

Thanks for your patience, Joh



[Rd] R CMD check and postscript fonts
Johannes Graumann