修改NetBeans預設字型為Consolas

NetBeans是一個很不錯的Java IDE,但是他預設字型很醜,我很喜歡Consolas這個字型,每次重灌電腦都要再設定一次,乾脆就趁這次寫起來放。

1. 找到NetBeans在跑的JDK,像我目前是C:\Program Files\Java\jdk1.6.0_23\jre\lib。
2. 在這個目錄裡面,找到fontconfig.properties,如果沒有就把fontconfig.properties.src拷貝一份,改檔名把.src拿掉。
3. 在最下面加入:

filename.Consolas=consola.ttf
filename.Consolas_Bold=consolab.ttf
filename.Consolas_Italic=consolai.ttf
filename.Consolas_Bold_Italic=consolaz.ttf

4. 找到monospaced,改成這樣:

#monospaced.plain.alphabetic=Courier New
monospaced.plain.alphabetic=Consolas
monospaced.plain.chinese-ms950=MingLiU
monospaced.plain.chinese-ms950-extb=MingLiU-ExtB
monospaced.plain.hebrew=David
monospaced.plain.japanese=MS Gothic
monospaced.plain.korean=GulimChe

#monospaced.bold.alphabetic=Courier New Bold
monospaced.bold.alphabetic=Consolas Bold
monospaced.bold.chinese-ms950=PMingLiU
monospaced.bold.chinese-ms950-extb=PMingLiU-ExtB
monospaced.bold.hebrew=David Bold
monospaced.bold.japanese=MS Gothic
monospaced.bold.korean=GulimChe

#monospaced.italic.alphabetic=Courier New Italic
monospaced.italic.alphabetic=Consolas Italic
monospaced.italic.chinese-ms950=PMingLiU
monospaced.italic.chinese-ms950-extb=PMingLiU-ExtB
monospaced.italic.hebrew=David
monospaced.italic.japanese=MS Gothic
monospaced.italic.korean=GulimChe

#monospaced.bolditalic.alphabetic=Courier New Bold Italic
monospaced.bolditalic.alphabetic=Consolas Bold Italic
monospaced.bolditalic.chinese-ms950=PMingLiU
monospaced.bolditalic.chinese-ms950-extb=PMingLiU-ExtB
monospaced.bolditalic.hebrew=David Bold
monospaced.bolditalic.japanese=MS Gothic
monospaced.bolditalic.korean=GulimChe


5. 最後修改找字型的順序:

sequence.monospaced.x-windows-950=alphabetic,chinese-ms950,dingbats,symbol,chinese-ms950-extb

留言

這個網誌中的熱門文章

使用Mac的Preview來合併兩張圖片

重拾起書本

Mac OS X 10.6.3 上的黑體-繁