Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svalue(gtext_obj) <- "asdf" drops font attributes #51

Open
landroni opened this issue Jul 9, 2014 · 3 comments
Open

svalue(gtext_obj) <- "asdf" drops font attributes #51

landroni opened this issue Jul 9, 2014 · 3 comments

Comments

@landroni
Copy link
Contributor

landroni commented Jul 9, 2014

I'm wondering if this is expected behaviour.

w <- gwindow("gtext example", visible=FALSE)
g <- gvbox(cont=w)
t2 <- gtext("monospace", font.attr=list(family="monospace"), container=g)
visible(w) <- TRUE

Now if you do svalue(t2) <- "monospace", you will notice that the widget font is no longer Monospace. I would have expected that the attributes of a gtext() object were not dropped unless specifically requested.

@jverzani
Copy link
Owner

Nope, that is definitely a bug. I thought I had fixed it, but must have dropped the ball.

@jverzani
Copy link
Owner

I can't seem to replicate this. Is this windows thing perhaps?

@landroni
Copy link
Contributor Author

I double-checked and I can replicate it here (on Linux) :

> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
    [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
[4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
[7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

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

other attached packages:
    [1] plyr_1.8.1           gWidgets2RGtk2_1.0-3 memoise_0.2.1        Hmisc_3.14-4        
[5] Formula_1.1-1        survival_2.37-7      lattice_0.20-29      RGtk2_2.20.29       
[9] gWidgets2_1.0-6      digest_0.6.4        

loaded via a namespace (and not attached):
    [1] cluster_1.14.4      codetools_0.2-8     latticeExtra_0.6-26 RColorBrewer_1.0-5 
[5] Rcpp_0.11.2         tools_3.0.2        

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants