Skip to content
Prev 8380 / 63421 Next

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!