<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br class=""><blockquote type="cite" class="">On 17 May 2017, at 21:28 , Fox, John <<a href="mailto:jfox@mcmaster.ca" class="">jfox@mcmaster.ca</a>> wrote:<br class=""><br class="">Dear Peter,<br class=""><br class="">First, thank you very much for persisting with this. I greatly appreciate it.<br class=""><br class=""><blockquote type="cite" style="font-family: Monaco; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">-----Original Message-----<br class="">From: Peter Dalgaard [<a href="mailto:pdalgd@gmail.com" class="">mailto:pdalgd@gmail.com</a>]<br class="">Sent: Wednesday, May 17, 2017 2:52 PM<br class="">To: Simon Urbanek <<a href="mailto:simon.urbanek@r-project.org" class="">simon.urbanek@r-project.org</a>><br class="">Cc: Fox, John <<a href="mailto:jfox@mcmaster.ca" class="">jfox@mcmaster.ca</a>>; <a href="mailto:r-sig-mac@r-project.org" class="">r-sig-mac@r-project.org</a><br class="">Subject: Re: [R-SIG-Mac] R commander fonts on R 3.4.0<br class=""><br class="">A few more data points:<br class=""><br class="">I tried building Tcl/Tk 8.6.6 from the sources from sourceforge.<br class="">Contrary to what it says on the package, it insists on building Tcl and<br class="">Tk as frameworks, which in turn requires that R's configure needs<br class="">special instructions. This works reasonably well for simple tcltk stuff<br class="">(demos, the CRAN selection menu), but unfortunately, library(Rcmdr)<br class="">causes an "Abort trap: 6" almost immediately. (I get a sense of deja vu<br class="">about this... Did Brian try something similar years ago?)<br class=""></blockquote><br class="">I believe that Brian mentioned to me years ago that he was able to get R (and the Rcmdr package) to work fine with a native version of Tcl/Tk for Macs. Beyond that, I don't recall.<br class=""></blockquote><div class=""><br class=""></div><div class="">The thing I recall was something like "We tried this approach but it crashed immediately so we gave up", but I may well be mistaken, or it was some other library, or...</div><br class=""><blockquote type="cite" class=""><br class=""><blockquote type="cite" style="font-family: Monaco; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class=""><br class="">It does actually seem to work to build R against the system-supplied<br class="">v.8.5 frameworks. However, this is Aqua-based, and the fonts are a bit<br class="">weird (smooth, but way too small) and the Rcmdr menus get moved to the<br class="">top bar.<br class=""></blockquote><br class="">Moving the menus to the top bar is desirable, in my opinion, because it's what Mac users expect. If the problem is simply with the font sizes, I should be able to adjust that automatically, as I do now.<br class=""></blockquote><div class=""><br class=""></div><div class="">The attached (which at least you and Simon should get, but may get scrubbed for the mailing list)  shows how it looks with Aqua-Tcl/Tk using the ActiveState binaries for 8.6.6, after I increased the font sizes to legibility. Obviously, these do not crash like the source compiles do....better not get started on commenting upon _that_ situation. </div><div class=""><br class=""></div><div class="">As you see, it is pretty close to usable with a few misfeatures: The background colouring is off in places and the highlighting, counterproductively, comes out black-on-blue rather than white-on-blue. All functionality that I tried appeared to be present, even the data editor.</div><div class=""><br class=""></div><div class="">Incidentally, in the background, you see the regular XQuartz Rcmdr when using the TclTk from the R-3.3 packages (with the smooth fonts). </div><br class=""><blockquote type="cite" class=""><br class=""><blockquote type="cite" style="font-family: Monaco; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class=""><br class="">I am pretty sure by now that all this stuff is a generic tcltk build<br class="">problem and way out of John's domain. (Thanks for posting the font code,<br class="">John. I hope I can get around to having a closer look at it at some<br class="">point. Those .Tcl(paste()) constructs make me cringe a bit, but not all<br class="">are easily eliminated.)<br class=""></blockquote><br class="">If you see a better way to do this, of course I'd appreciate that. It took a fair amount of work to adjust the fonts so that they look right on Windows, macOS, and Linux systems.<br class=""></blockquote><div class=""><br class=""></div><div class="">Most of what I see is probably shortcomings of the R/Tcl interface. Ideally, everything should be tcl() calls and tclObj's, but ideas like getting an argument list from tk.actual() and using that in tkfont.create() do not quite fit in with the current toolbox.</div><div class=""><br class=""></div><div class="">-pd </div><div class=""><br class=""></div><br class=""><blockquote type="cite" class=""><br class="">Best,<br class="">John<br class=""><br class=""><blockquote type="cite" style="font-family: Monaco; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class=""><br class="">-pd<br class=""><br class=""><blockquote type="cite" class="">On 16 May 2017, at 23:52 , peter dalgaard <<a href="mailto:pdalgd@gmail.com" class="">pdalgd@gmail.com</a>> wrote:<br class=""><br class=""><br class=""><blockquote type="cite" class="">On 16 May 2017, at 21:03 , peter dalgaard <<a href="mailto:pdalgd@gmail.com" class="">pdalgd@gmail.com</a>> wrote:<br class=""><br class="">I don't think the config flags for R matter in this regard. The<br class=""></blockquote></blockquote>behaviour is completely paralleled by wish8.6:<br class=""><blockquote type="cite" class=""><br class="">Hmmm, not sure the wish ::tk::pkgconfig thing proves anything, after I<br class=""></blockquote>tried some of the ActiveState installs and a source build. This stuff is<br class="">making my head spin!<br class=""><blockquote type="cite" class=""><br class="">However, I discovered that it is possible to install R-3.4.0.pkg as<br class=""></blockquote>usual, and then a customized install of (say) R-3.3-branch-<br class="">mavericks.pkg, omitting everything except the Tcl/Tk stuff. That gives<br class="">you R 3.4.0 and Rcmdr with antialiased fonts.<br class=""><blockquote type="cite" class=""><br class="">--<br class="">Peter Dalgaard, Professor,<br class="">Center for Statistics, Copenhagen Business School Solbjerg Plads 3,<br class="">2000 Frederiksberg, Denmark<br class="">Phone: (+45)38153501<br class="">Office: A 4.23<br class="">Email: <a href="mailto:pd.mes@cbs.dk" class="">pd.mes@cbs.dk</a>  Priv: <a href="mailto:PDalgd@gmail.com" class="">PDalgd@gmail.com</a><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""></blockquote><br class="">--<br class="">Peter Dalgaard, Professor,<br class="">Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000<br class="">Frederiksberg, Denmark<br class="">Phone: (+45)38153501<br class="">Office: A 4.23<br class="">Email: <a href="mailto:pd.mes@cbs.dk" class="">pd.mes@cbs.dk</a>  Priv: <a href="mailto:PDalgd@gmail.com" class="">PDalgd@gmail.com</a><br class=""></blockquote></blockquote><br class=""><div class="">-- <br class="">Peter Dalgaard, Professor,<br class="">Center for Statistics, Copenhagen Business School<br class="">Solbjerg Plads 3, 2000 Frederiksberg, Denmark<br class="">Phone: (+45)38153501<br class="">Office: A 4.23<br class="">Email: <a href="mailto:pd.mes@cbs.dk" class="">pd.mes@cbs.dk</a>  Priv: PDalgd@gmail.com<br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""></div><img apple-inline="yes" id="DE10BB4A-176A-45F5-8EE7-6D434A09E1AD" src="cid:9EB58023-D43F-4857-8834-B8AE90B184C2@webspeed.dk" class=""></body></html>