一直以來,就感覺使用 eclipse 時的那幾種字體很難看,而且非等寬,空格寬度很小,排版很亂。
搜索並試用了一下,發現了字體inconsolata。 這是一個很適合編程的字體,效果如下:
非常漂亮。
首先去 http://www.levien.com/type/myfonts/inconsolata.html 下載 pfa文件,打開安裝。
然后在 eclipse 中依次點擊 windows->preferences -> Genral -> Appearance -> Colors and Fonts -> 找到 java editor text font 點擊 edit, 找到 inconsolata 確定即可。