Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.64.0712111642260.24871@gannet.stats.ox.ac.uk>
Date: 2007-12-11T16:47:37Z
From: Brian Ripley
Subject: Mono in postscript device
In-Reply-To: <000601c83c12$b19d19c0$9f05a20a@matrix.com>

On Tue, 11 Dec 2007, Benjamin Otto wrote:

> Hi,
>
> Plotting a graphic into a postscript device using family="mono" returns the
> following error message:
>
>>> 	family 'mono' not included in PostScript device
>
> Looking at postscriptFonts() however lists the "Courier" font as availeable
> mono font. So where is the problem?

The 'problem' is that you have not provided us with reproducible code, and 
used an obsolete version of R.  At least some of the ways you might have 
done this you needed to specify the 'fonts' argument to postscript().

As a minimal example,

> postscript(family="mono")
> plot(1:10)
> dev.off()

works in R 2.6.1.  If that does not work for you, you need to update.
If it does, you need to consider what you did differently.

> Thanks guys for your help.
> Best regards
>
> Benjamin
>
> sessionInfo()
>
> R version 2.5.0 (2007-04-23)
> i386-pc-mingw32

[...]


-- 
Brian D. Ripley,                  ripley at 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