Skip to content

Sweave Cairo driver?

4 messages · Liviu Andronic, Brian Ripley

#
Dear all
I would like to use Sweave with the Cairo() graphics device instead of
pdf(), since the former supports Unicode, allows for easier font
selection out of a greater range of available fonts, and automatically
embeds fonts into the resulting PDF.

Following this older discussion [1], has anyone come up with an Sweave
driver that uses the Cairo graphics device? Thank you
Liviu

[1] http://tolstoy.newcastle.edu.au/R/e12/help/10/10/0986.html
#
This is simple in 2.13.0 RC, which allows you to add graphics devices 
for Sweave.
On Wed, 6 Apr 2011, Liviu Andronic wrote:

            
As does cairo_pdf(), builtin to R and more reliable in my experience.

  
    
#
On Thu, Apr 7, 2011 at 6:39 AM, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
Interesting. Which help files should I look into?
Thank you, I didn't know that, and it looks nice, indeed. Regards
Liviu
#
Dear Brian
On Thu, Apr 7, 2011 at 6:39 AM, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
I've looked into the help pages and searched the lists, but could only
find out that "The default font family is Helvetica."

How could I use a different  font with cairo_pdf? In Cairo (the R
package), there is a ?CairoFontMatch and ?CairoFonts. Are there
equivalents for cairo_pdf?

Thank you
Liviu