下载了eclipse3.7,发现这个版本默认的字体不是Courier New,后来通过eclipse->windows->preferences->general->apperance->colors and fonts->basic->text fonts设置,发现没有这个字体,后来网上找了资料,可以直接修改配置

先在eclipse安装目录找到\plugins\org.eclipse.jface_3.7.0.I20110522-1430.jar(不同eclipse版本,文件名不同,不过都是类似的)

然后用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后就可以了

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2022-01-16
  • 2021-12-18
  • 2021-12-06
  • 2022-12-23
猜你喜欢
  • 2021-04-14
  • 2021-12-18
  • 2021-04-28
  • 2021-07-02
  • 2021-09-18
  • 2021-06-15
相关资源
相似解决方案