[R-gui] Font specification of gtext() in gWidgets

j verzani jverzani at gmail.com
Mon Mar 22 04:01:49 CET 2010


Yihui Xie <xie <at> yihui.name> writes:

> 
> Hi all,
> 
> It seems that we can only specify fonts for the selected texts in
> gtext() (by font()<-). Is there any way to specify fonts for all texts
> in the text widget without selecting texts? Thanks!
> 


When you add text, you should also be able to add font attributes as in:

 add(g,"mono blue large", font.attr=c(
   style="monospace", 
   color="blue", 
   size="x-large"))

I should have a means to set the text properties for the whole buffer though.

--John


> Regards,
> Yihui
> --
> Yihui Xie <xieyihui <at> gmail.com>
> Phone: 515-294-6609 Web: http://yihui.name
> Department of Statistics, Iowa State University
> 3211 Snedecor Hall, Ames, IA
>



More information about the R-SIG-GUI mailing list