修改eclipse中字体为Courier New等字体

比较喜欢Courier New这个字体,但是新安装的eclipse里面没有这个默认的字体,点击更多字体中有,但是不知道怎么添加进列表。最后没办法,直接修改了eclipse的字体配置文件。
终于在列表中看到了Courier New字体。

step 1.只修改列表中有的字体的方法:
eclipse->windows->preferences->general->apperance->colors and fonts->(basic->text fonts或者java->java editor and fonts这两个都可以)
修改eclipse中字体为Courier <wbr>New等字体

step 2.添加Courier New

从eclipse的安装路径中找到\plugins\org.eclipse.jface_3.7.0.I20110522-1430.jar
修改eclipse中字体为Courier <wbr>New等字体
这个jar包,可能名称略有不同,用winRAR方式打开,
找到其中的org.eclipse.jface_3.7.0.I20110522-1430.jar\org\eclipse\jface\resource\
目录
其中能看到各种不同系统的字体配置文件,比如win7就叫做:
jfacefonts_windows7.properties

随便用一个编辑器打开

修改成如下这样:
org.eclipse.jface.textfont.0=Courier New-regular-12
org.eclipse.jface.textfont.1=Consolas-regular-10

记住一定要关闭eclipse之后再做如上修改。

修改包之后保存,winRAR会提示你是否将修改后的打进压缩包,选择“是”

然后重启eclipse就能在step1中的列表中看到Courier New啦

猜你喜欢

转载自blog.csdn.net/shfei10100/article/details/49279617