[Rd] Warning for dropped text with devices that don't support clipping

2009-01-24 Thread Sebastian Fischmeister
Hello, Without feedback, it's hard to understand why text does not show up in the output—especially, if it shows up on one device but not on another. I suggest adding a warning message when text gets ignored, because the device doesn't support clipping (see the attached patch).

Re: [Rd] Warning for dropped text with devices that don't support clipping (in text attachments)

2009-01-24 Thread Sebastian Fischmeister
Hello, Apparently, the mail program doesn't like attachments. Here's the patch and the script again. Sebastian --- R Script --- xfig (file = test .fig,onefile=TRUE,width=6,height=4,textspecial=TRUE,defaultfont=TRUE) barplot(seq(.8,0,-0.15))

[Rd] Automatic shortening of text to fit into area

2009-01-24 Thread Sebastian Fischmeister
Hello, A comment in engine.c states: /* don't draw anything; this could be made less crude :) */. The following patch makes it less crude: If the device doesn't support clipping and the text doesn't fit into the area, then remove one character after another from the text until either

Re: [Rd] patch for textspecial and defaultfont in xfig

2009-01-19 Thread Sebastian Fischmeister
Thanks for the guidelines. The updated patch also includes an exhaustive test in R for the two new options. Sebastian Index: src/library/grDevices/R/postscript.R === --- src/library/grDevices/R/postscript.R(revision

[Rd] patch for textspecial and defaultfont in xfig

2009-01-18 Thread Sebastian Fischmeister
Hello, The current xfig device lacks the functionality to set the textspecial flag and use the defaultfont in xfig. This is necessary when you want to export to xfig and use interpreted text (e.g., $ \frac{1}{e}$ gets interpreted by latex). The attached patch adds this functionality.