Re: [R] strwidth of bold font

2007-10-31 Thread Roland Kaiser
> Hi > > > Henrique Dallazuanna wrote: >> Perhaps: >> strwidth(expression(bold("text"))) > > > Or set the default font face ... Thanks! Things can often be so easy! Roland > > plot(1:10) > text(4, 6, "testing", adj=c(0, 0)) > segments(4, 6, 4 + strwidth("testing"), 6, col="red") > par(font=2)

Re: [R] strwidth of bold font

2007-10-31 Thread Paul Murrell
Hi Henrique Dallazuanna wrote: > Perhaps: > > strwidth(expression(bold("text"))) Or set the default font face ... plot(1:10) text(4, 6, "testing", adj=c(0, 0)) segments(4, 6, 4 + strwidth("testing"), 6, col="red") par(font=2) text(4, 8, "testing", adj=c(0, 0)) segments(4, 8, 4 + strwidth("tes

Re: [R] strwidth of bold font

2007-10-30 Thread Roland Kaiser
Thanks it does the trick! > Perhaps: > > strwidth(expression(bold("text"))) > > > On 30/10/2007, Roland Kaiser <[EMAIL PROTECTED]> wrote: Hi! > > Is there a way to get the string width of the bold typefaces? > > like: strwidth("text", family = "serif", font = 2). > > Thanks > > Roland > > ___

Re: [R] strwidth of bold font

2007-10-30 Thread Henrique Dallazuanna
Perhaps: strwidth(expression(bold("text"))) On 30/10/2007, Roland Kaiser <[EMAIL PROTECTED]> wrote: > > Hi! > > Is there a way to get the string width of the bold typefaces? > > like: strwidth("text", family = "serif", font = 2). > > Thanks > > Roland > >

[R] strwidth of bold font

2007-10-30 Thread Roland Kaiser
Hi! Is there a way to get the string width of the bold typefaces? like: strwidth("text", family = "serif", font = 2). Thanks Roland __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide htt