[R] strange behaviour of CairoPNG

Henrik Bengtsson hb at stat.berkeley.edu
Sat Jun 5 14:39:57 CEST 2010


FYI, follow the information in the email footer:

> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

and make sure at a minimum to report your sessionInfo(). That
increases your chances to get a response.

/Henrik

On Sat, Jun 5, 2010 at 11:42 AM, Thomas Steiner <finbref.2006 at gmail.com> wrote:
> OK, no reply. :-(
> I'm more offensive: this is a bug!
> the font-parameter of the text fucntion does not work properly in the
> Cairo-package
> thomas
>
>
> 2010/6/4 Thomas Steiner <finbref.2006 at gmail.com>:
>> 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.
>



More information about the R-help mailing list