[Rd] Italics in svg output display as bold (PR#13463)
Xavier.Robin at unige.ch
Tue Feb 10 16:52:51 CET 2009
Yan Wong-3 wrote:
> On 22 Jan 2009, at 11:58, Brian D Ripley wrote:
>> It is a bug on your system: this is done by cairographics, and I
>> suspect that the version you have is broken (or possibly your viewer).
>> I'll attach the version I get, which does display in italics on my
> Thanks for that. I do see italics in your file using my 2 viewers, so
> I guess that the problem is not my viewer.
At this point I should note that I can see this on Windows XP as well. Using
R 2.8.1 (CRAN binary version) and version 1.4-4 of Cairo from CRAN (windows
It doesn't seem specific to SVG, I can reproduce it with pdf or png as well.
On R-SIG-Mac, Simon Urbanek wrote:
> cairographics cannot locate an italic version of the font
The following testcase tends to show the contrary:
Cairo("plot.png", width=7, height=7, units="cm", dpi=100)
text(0.5,0.4,labels=expression(italic("This should be in italics")))
text(0.5,0.6,labels=expression(bold("This should be in bold")))
The text that should be in italics is in bold, and vice versa. This makes me
think Cairo actually finds both italics and bold, but gets confused
I tried replacing Arial by Times or Tahoma, or removing the call to par(),
but italics and bold are always reversed (with the correct family used).
View this message in context: http://www.nabble.com/Italics-in-svg-output-display-as-bold-%28PR-13463%29-tp21602252p21936538.html
Sent from the R devel mailing list archive at Nabble.com.
More information about the R-devel