Re: [R] strange behaviour of CairoPNG

From: Thomas Steiner <finbref.2006_at_gmail.com>
Date: Sat, 26 Jun 2010 16:13:20 +0200

Thank you Henrik for your answer.

I hope now I am inline with the posting huide and perhaps I get an answer, thank you.

> sessionInfo()

R version 2.9.0 alpha (2009-03-23 r48200) i386-pc-mingw32

locale:
LC_COLLATE=German_Austria.1252;LC_CTYPE=German_Austria.1252;LC_MONETARY=German_Austria.1252;LC_NUMERIC=C;LC_TIME=German_Austria.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] Cairo_1.4-4

2010/6/5 Henrik Bengtsson <hb_at_stat.berkeley.edu>:
> 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.
>>
>



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. Received on Sat 26 Jun 2010 - 15:02:40 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 26 Jun 2010 - 15:15:36 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