Re: [R] Postscript fonts

2006-08-05 Thread Prof Brian Ripley
On Sat, 5 Aug 2006, Erich Neuwirth wrote:

 How can I find out what fonts are available for
 par(family=
 for the postscript device?

This is dynamic: for the current value

 names(postscriptFonts())
 [1] serifsans mono
 [4] symbol   AvantGarde   Bookman
 [7] Courier  HelveticaHelvetica-Narrow
[10] NewCenturySchoolbook Palatino Times
[13] URWGothicURWBookman   NimbusMon
[16] NimbusSanURWHelvetica NimbusSanCond
[19] CenturySch   URWPalladio  NimbusRom
[22] URWTimes ComputerModern   ComputerModernItalic
[25] Japan1   Japan1HeiMin Japan1GothicBBB
[28] Japan1Ryumin Korea1   Korea1deb
[31] CNS1 GB1

and for more details see the current R-News (6/2).

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
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, UKFax:  +44 1865 272595

__
R-help@stat.math.ethz.ch 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.


Re: [R] Postscript fonts

2006-08-05 Thread Erich Neuwirth
Thanks,

The following piece of code demonstrates a problem I still have.

pdf(file=fonttest.pdf,fonts=c(Helvetica))
plot(1:10,main=,xlab=)
par(family=Helvetica,font=1)
title(main=Helvetica)
par(family=Helvetica,font=2)
title(sub=Helvetica-Bold)
par(family=Helvetica,font=3)
title(xlab=Helvetica-Oblique)
dev.off()

The font=  parameter seems not to be respected.
I do not get bold or italics.
What am I doing wrong or not understand here?

My original problem was that I had not understood that the
fonts parameter is absolutely necessary when opening the device
when one wants to use par(family= ).


BTW, this is R 2.3.1 on Windows XP.



Prof Brian Ripley wrote:
  On Sat, 5 Aug 2006, Erich Neuwirth wrote:
 
  How can I find out what fonts are available for
  par(family=
  for the postscript device?
 
  This is dynamic: for the current value
 
  names(postscriptFonts())
   [1] serifsans mono
   [4] symbol   AvantGarde   Bookman
   [7] Courier  HelveticaHelvetica-Narrow
  [10] NewCenturySchoolbook Palatino Times
  [13] URWGothicURWBookman   NimbusMon
  [16] NimbusSanURWHelvetica NimbusSanCond
  [19] CenturySch   URWPalladio  NimbusRom
  [22] URWTimes ComputerModern
ComputerModernItalic
  [25] Japan1   Japan1HeiMin Japan1GothicBBB
  [28] Japan1Ryumin Korea1   Korea1deb
  [31] CNS1 GB1
 
  and for more details see the current R-News (6/2).
-- 
Erich Neuwirth, University of Vienna
Faculty of Computer Science
Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-39464 Fax: +43-1-4277-39459

__
R-help@stat.math.ethz.ch 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.


[R] Postscript fonts

2006-08-04 Thread Erich Neuwirth
How can I find out what fonts are available for
par(family=
for the postscript device?



-- 
Erich Neuwirth, Didactic Center for Computer Science
University of Vienna
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-39464 Fax: +43-1-4277-9394

__
R-help@stat.math.ethz.ch 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.