klo*_*klo 6 macos fonts rstudio
我想在RStudio中安装一个新字体.更具体地说,我在我的办公室(Windows)和家里(OS X)使用RStudio,但我看到字体不同,需要一段时间才能习惯.
有人可以建议如何在Mac中的RStudio中安装SAS monospace字体吗?
(我在这里和谷歌进行了搜索,但我没有找到答案回答我的问题.)
先感谢您!
我在 Windows 上遇到了类似的问题,我想使用我安装的新字体,mononoki 字体。我找不到更改选项,所以我查看了 RStudio 源代码,发现对于 RStudio 的桌面版本,RStudio 会自动从操作系统加载字体。它应该在 MAC 上以相同的方式工作。
您所要做的就是:
1.Install your font as usual for your OS
2.Then restart RStudio
3.The new font appears in the Editor Fonts pull down menu
(navigation: Global Options -->Appearance --> Editor Fonts)
4.Select the font from Editor Fonts pulldown menu.(Your Done!)
Run Code Online (Sandbox Code Playgroud)
这是从 RStudio 加载字体的代码。如您所见,它会自动加载比例字体和固定字体。RStudio 的 Web 版本将字体选择限制为仅几种字体。
static class DesktopThemeFontLoader implements ThemeFontLoader
{
public native final String getProportionalFont() /*-{
return $wnd.desktop.proportionalFont();
}-*/;
public native final String getFixedWidthFont() /*-{
return $wnd.desktop.fixedWidthFont();
}-*/;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3312 次 |
| 最近记录: |