Using Custom Font for Android Studio Editor

时间:2015-07-28 15:43:24

标签: android-studio fonts

I installed my favorite programming editor font - Inconsolata - on my Macbook Pro, but I can't seem to get it working in Android Studio. I've confirmed that the font works correctly on eclipse, so it is definitely installed correctly.

In the Android Studio options, it just shows a bunch of strange boxed A characters. If I select the font, my entire editor becomes boxed A characters.

Anyone know how to make this font work in Android Studio?

What Inconsolata looks like in Android Studio options.

2 个答案:

答案 0 :(得分:5)

我让Inconsolata工作,取消选择"只显示等宽字体。"在那之前,Inconsolata甚至没有露面。我使用的是Windows,但它可能适合您。

enter image description here

答案 1 :(得分:0)

在Android Studio编辑器中更改字体的最简单方法如下:

第1步:转到目录C:\ Program Files \ Android \ Android Studio \ jre \ jre \ lib \ fonts

第2步:粘贴扩展名为.ttf的字体,即自定义字体的(True Type字体)文件。

第3步:打开Android Studio,然后通过“文件”菜单中的设置/常规/字体设置字体。但是,请确保您必须重新打开Android Studio(如果已打开)。