Permalink
Browse files

Improve font rendering in RStudio for Mac

  • Loading branch information...
almata committed Oct 4, 2018
1 parent 28d84ba commit 19fafe35ec646a296ec55aa1eb076f42b2f7887c
@@ -107,3 +107,8 @@ _Some truncated content here..._
* M MongoDB/select-documents-find-pretty-count-distinct.md
* A MongoDB/update-documents-updateone-updatemany.md
## 2018-10-04 (10:12)
* A R/improve-font-rendering-in-rstudio-for-mac-1.png
* A R/improve-font-rendering-in-rstudio-for-mac-2.png
* A R/improve-font-rendering-in-rstudio-for-mac.md
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,31 @@
# Improve font rendering in RStudio for Mac
I like to work with thinner fonts than most text editors use. In RStudio it's possible to change that setting using this little hack.
First of all, we need to open RStudio, right-click on the main text editor and select Inspect Element.
Then, scroll down until we find a `link` line like this one:
```html
<link type="text/css" rel="stylesheet" id="rstudio-acethemes-linkelement"
href="http://127.0.0.1:43322/rstudio/3AAAF56BE4B500705B77183473800771.cache.css">
```
Finally, we go to where that CSS file is and change some style. In my case, I need to go to `/Applications/RStudio.app/Contents/Resources/www/rstudio`. And there I just need to add this at the top:
```css
div {
-webkit-font-smoothing: antialiased;
}
```
With that my RStudio goes from this:
![Before -webkit-font-smoothing: antialiased][1]
To this:
![After -webkit-font-smoothing: antialiased][2]
[1]: improve-font-rendering-in-rstudio-for-mac-1.png
[2]: improve-font-rendering-in-rstudio-for-mac-2.png
@@ -7,7 +7,7 @@ When you have been working with different technologies and programming languages
__55 notes so far. Last added:__ [Update documents: updateOne() & updateMany()](MongoDB/update-documents-updateone-updatemany.md)
__58 notes so far. Last added:__ [Improve font rendering in RStudio for Mac](R/improve-font-rendering-in-rstudio-for-mac.md)
## Categories
@@ -25,6 +25,7 @@ __55 notes so far. Last added:__ [Update documents: updateOne() & updateMany()](
* [Objective-C](#objective-c)
* [Programming](#programming)
* [Python](#python)
* [R](#r)
* [ReactNative](#reactnative)
* [Ruby](#ruby)
* [Scala](#scala)
@@ -112,6 +113,10 @@ __55 notes so far. Last added:__ [Update documents: updateOne() & updateMany()](
* [Manage different Python versions with Anaconda](Python/manage-different-python-versions-with-anaconda.md)
## R
* [Improve font rendering in RStudio for Mac](R/improve-font-rendering-in-rstudio-for-mac.md)
## ReactNative
* [Deploy an app from Android Studio](ReactNative/deploy-an-app-from-android-studio.md)

0 comments on commit 19fafe3

Please sign in to comment.