在Windows 10上获取IntelliJ“ DejaVu Sans Mono”字体

时间:2018-07-17 21:17:10

标签: intellij-idea fonts settings

在工作中,我在Linux Mint上使用IntelliJ并设置了DejaVu Sans Mono字体。在家里,我使用Windows10,但是在字体设置面板上看不到该字体。有没有办法添加它,因为defaut提出的建议真的没用。非常感谢

1 个答案:

答案 0 :(得分:3)

如果没有字体,则可以从以下链接下载并安装:DejaVu Fonts on GitHub

我仅从提供的zip文件中安装了DejaVu Sans Mono,然后重新启动了“ IntelliJ IDEA”。然后,转到File > Settings > Editor > Font并取消选中第一个复选框Show only monospaced fonts,然后选择所需的字体DejaVu Sans Mono

屏幕截图:enter image description here

最后,编辑器如下所示:

enter image description here

然后,要更改IDE其他部分的字体,请转到Settings > Appearance & Behavior > Appearance并取消选择“覆盖默认字体”,然后选择您喜欢的字体。

屏幕截图:

enter image description here




**编辑:如何安装字体:**(轻松安装):下载后打开zip文件,然后进入dejavu-fonts-ttf-2.37\ttf目录,您将找到名为DejaVuSansMono.ttf的字体

enter image description here

双击字体,将出现以下窗口。然后,您必须单击Install才能将其安装在系统上。我相信您需要获得系统的适当权限才能安装它。

enter image description here