[R] strange behaviour of CairoPNG
Thomas Steiner
finbref.2006 at gmail.com
Fri Jun 4 10:19:49 CEST 2010
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()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test-cairo.png
Type: image/png
Size: 7330 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100604/a2e86e25/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test-normal.png
Type: image/png
Size: 3968 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100604/a2e86e25/attachment-0001.png>
More information about the R-help
mailing list