strwidth(font=NULL)

Paul Murrell p.murrell@auckland.ac.nz
Tue, 12 Nov 2002 12:58:32 +1300


Hi


ripley@stats.ox.ac.uk wrote:
> 
> If you look in the code you will see this is mentioned as a if/when
> possibility in several places.
> 
> See also bug report PR#776, from December 2000, so this is probably in the
> Real Soon Now category.  Paul Murrell might have a better estimate!


I am half way through a change to R's font specification 
(see http://www.stat.auckland.ac.nz/~paul/R/fonts.html
and http://www.stat.auckland.ac.nz/~paul/R/paul-todo.html)
which will eventually filter down to R-code, including this change.

(unfortunately, I cannot give an estimate any more accurate than Brian's
at this stage)

Paul


> On Fri, 8 Nov 2002, David Brahm wrote:
> 
> >    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!
> 
> --
> Brian D. Ripley,                  ripley@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 272860 (secr)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

-- 
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x5392
paul@stat.auckland.ac.nz
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._