[R-SIG-Mac] Possible mac-specific bug in svg (cairo) graphics

Yan Wong yan at pixie.org.uk
Tue Jan 27 16:33:24 CET 2009


Hi,

Using the Mac OS X binary (R 2.8.1) from CRAN, generating SVG files  
with italics produces bold text instead. I reported this to R-bugs,  
and as it seems to be a Mac-specific problem, I was advised to report  
it here.

As a test case, try viewing the test.svg file generated by

svg("test.svg", width=4,4,8)
plot.new()
text(0.5,0.5,labels=expression(italic("This should be in italics")))
dev.off()

On my system (OS X 10.4.11) viewing the SVG file either in Safari  
3.2.1 or Firefox 2.0.0.9 shows bold text.

Cheers

Yan



More information about the R-SIG-Mac mailing list