IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    Overriding RStudio Desktop’s Font Picker

    tshafer.com发表于 2023-11-18 18:16:00
    love 0
    [This article was first published on tshafer.com, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
    Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

    I’ve been doing a decent amount of R programming lately and I’ve wanted to experiment with GitHub’s new Monaspace type family. Once installed, though, only the variable font—er—variants register as fixed-width fonts on macOS. This is a problem because RStudio Desktop (at least as of version 2023.06.1+52) only allows users to select fixed-width fonts in the interface.

    RStudio manages most preferences in flat JSON files these days, so I figured I could pick whatever font file I wanted in these JSON files. After some searching, though, RStudio does not store font configuration in the usual places: ~/.local/share/rstudio/ or ~/.config/rstudio/.

    Instead, the font setting is stored (on macOS Sonoma, at least) in ~/Library/Application Support/RStudio/config.json. I swapped in font["fixedWidthFont"] = "MonaspaceNeon-Regular", and everything works after an RStudio UI reload.


    This post is kindly republished by R-bloggers.

    To leave a comment for the author, please follow the link and comment on their blog: tshafer.com.

    R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
    Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
    Continue reading: Overriding RStudio Desktop’s Font Picker


沪ICP备19023445号-2号
友情链接