[R] strange behaviour of CairoPNG

From: Thomas Steiner <finbref.2006_at_gmail.com>
Date: Fri, 04 Jun 2010 10:19:49 +0200


Hi,
could it be that the text() fuction gives different output for normal png() and CarioPNG()?
See the following example and the attached images: the font=2 and font=3 seem to be exchanged!
Thanks for help,
Thomas

CairoPNG("Test-cairo.png",width=750,height=690) #png("Test-normal.png",width=750,height=690)

plot(1,1,type="n",main="normal")
text(1,1,"normal",adj=c(1,1))
text(1,1,"bold",font=2,adj=c(-1,-1))
text(1,1,"italic",font=3,adj=c(1,-1))
text(1,1,"italic&bold",font=4,adj=c(-1,1))

dev.off()



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Test-cairo.png Test-normal.png
Received on Fri 04 Jun 2010 - 08:42:02 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 05 Jun 2010 - 11:10:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive