方法一:
通过eclipse->windows->preferences->General->Apperance->Colors and Fonts->Basic->Text Font设置,
如果有的话可以直接设置,如果没有的话,可以参考下面的方法。
在eclipse目录找到\plugins\org.eclipse.jface_3.9.1.v20130725-1141.jar(不同eclipse版本,文件名不同,可以进入文件夹后搜索org.eclipse.jface)
找到后然后用rar打开,依次进入\org\eclipse\jface\resource\jfacefonts_windows7.properties(不同系统修改不同的对应文件,我的是win7)
将
org.eclipse.jface.textfont.0=Consolas-regular-10
org.eclipse.jface.textfont.1=Courier New-regular-10
修改成
org.eclipse.jface.textfont.0=Courier New-regular-10
org.eclipse.jface.textfont.1=Consolas-regular-10
修改后保存,WinRAR会提示是否在压缩文件中更新,选择“是”,最后重启eclipse
方式二:
Win7打开控制面板---->找到 字体 打开
然后在字体文件夹里面找到Courier New字体右击选择 显示
这样,Eclipse中设置字体时就会显示了