Re: [R] string width calculation

2010-03-27 Thread Henrique Dallazuanna
See ?strwidth On Sat, Mar 27, 2010 at 3:42 PM, Dennis Fisher wrote: > Colleagues, > > I am trying to create a PDF document in which I use margin text with two > different fonts.  The resulting text might be: >        XyZZZ > where X and Z are one font and Y is the other. > > My plan was to d

[R] string width calculation

2010-03-27 Thread Dennis Fisher
Colleagues, I am trying to create a PDF document in which I use margin text with two different fonts. The resulting text might be: XyZZZ where X and Z are one font and Y is the other. My plan was to do this in the following manner: mtext("X ZZZ", cex=2, adj=0.5, family=S