Skip to content
Back to formatted view

Raw Message

Message-ID: <15820.10363.591848.18577@gargle.gargle.HOWL>
Date: 2002-11-08T21:11:23Z
From: David Brahm
Subject: strwidth(font=NULL)

Hello,

   Would it be possible to give strwidth() and strheight() an argument "font",
that worked like the "cex" argument (i.e. defaults to current par("font"), but
can be overridden)?  Then I could replace this:

  R> oldpar <- par(font=2)
  R> x <- strwidth("hello")
  R> par(oldpar)

with this:

  R> x <- strwidth("hello", font=2)

Thanks!
-- 
                              -- David Brahm (brahm@alum.mit.edu)
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._