Skip to content
Back to formatted view

Raw Message

Message-ID: <B6730159-7BB3-43CC-B5E2-0964643D4C10@pixie.org.uk>
Date: 2009-01-27T15:33:24Z
From: Yan Wong
Subject: Possible mac-specific bug in svg (cairo) graphics

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