Rstudio How to enable font ligatures in RStudio?

I looked at the Fira Code , and I wanted to try it using one of the supported editors listed. So I launched RStudio (version 0.99.491 in the Win window) and installed the font in the Fira code, but ... nothing. So how to enable font ligatures in RStudio?

EDIT: The trick in the answer below still works for RStudio version 1.0.44. I still want a simple button there.

+6
source share
2 answers

Now RStudio has a build option for ligatures, you no longer need these dirty hacks, greetings!


[OLD CONTENT]

  • Close RStudio
  • Open [RStudio dir]/www/index.htm (If you are using a Linux distribution, dir might be /usr/lib/rstudio , thanks for the comment by @CosminSaveanu)
  • Add the following code between <head> and </head> :

    <style>*{text-rendering: optimizeLegibility;}</style>

  • Restart RStudio.

dirty but working.

+9
source

I still want a simple button there.

A wish! We just added this in RStudio 1.1.

You can try the preview release here:

https://www.rstudio.com/products/rstudio/download/preview/

+5
source

All Articles