這裡整理了一些容易閱讀的等寬英文字型,適合程式設計師在編寫程式時使用。
一般程式設計師在撰寫程式時,通常都會需要閱讀大量的程式碼,為自己的開發環境選擇一個適合閱讀的字型,是一件很重要的事情。
以下整理了各種適合程式設計的等寬字型(Monospaced Font),在 Ubuntu Linux 中使用 Vim 編輯器測試的結果。
一般在 Debian 系列的 Linux 中,如果要安裝字型,可將字型檔放在 /usr/share/fonts 或 ~/.fonts 目錄中,然後執行:
fc-cache -fv
這樣就可以使用新安裝的字型了。
Terminus
![terminus-12.png Terminus 12](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Rterminus-12.png)
![terminus-14.png Terminus 14](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Rterminus-14.png)
![terminus-16.png Terminus 16](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Rterminus-16.png)
字型名稱:Terminus
下載網址:sourceforge.net
如果是在 Ubuntu Linux 中,亦可用 apt 安裝:
sudo apt-get install xfonts-terminus
Envy Code R
![envy-code-r-10.png Envy code r 10](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Renvy-code-r-101.png)
![envy-code-r-12.png Envy code r 12](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Renvy-code-r-121.png)
![envy-code-r-17.png Envy code r 17](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Renvy-code-r-171.png)
![envy-code-r-17-antialias.png Envy code r 17 antialias](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Renvy-code-r-17-antialias1.png)
字型名稱:Envy Code R
下載網址:damieng.com
Hermit Medium
![hermit-10.png Hermit 10](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Rhermit-10.png)
![hermit-12.png Hermit 12](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Rhermit-12.png)
![hermit-14.png Hermit 14](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Rhermit-14.png)
字型名稱:Hermit
下載網址:pcaro.es
Inconsolata
![Inconsolata-14.png Inconsolata 14](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RInconsolata-14.png)
![Inconsolata-16.png Inconsolata 16](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RInconsolata-16.png)
![Inconsolata-18.png Inconsolata 18](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RInconsolata-18.png)
字型名稱:Inconsolata
下載網址:levien.com
Debian 系列的 Linux,可以用 apt 安裝:
sudo apt-get install fonts-inconsolata
Deja Vu Sans Mono
![DejaVu-Sans-Mono-10.png DejaVu Sans Mono 10](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RDejaVu-Sans-Mono-10.png)
![DejaVu-Sans-Mono-12.png DejaVu Sans Mono 12](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RDejaVu-Sans-Mono-12.png)
![DejaVu-Sans-Mono-14.png DejaVu Sans Mono 14](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RDejaVu-Sans-Mono-14.png)
字型名稱:Deja Vu Sans Mono
下載網址:fontsquirrel.com
Elronet Monospace
![elronet-10.png Elronet 10](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Relronet-10.png)
![elronet-12.png Elronet 12](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Relronet-12.png)
![elronet-14.png Elronet 14](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Relronet-14.png)
字型名稱:Elronet Monospace
下載網址:fontriver.com
Anonymous Pro
![anonymous-pro-10.png Anonymous pro 10](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Ranonymous-pro-10.png)
![anonymous-pro-12.png Anonymous pro 12](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Ranonymous-pro-12.png)
![anonymous-pro-14-antialias.png Anonymous pro 14 antialias](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Ranonymous-pro-14-antialias.png)
字型名稱:Anonymous Pro
下載網址:marksimonson.com
Profont
![ProFont-11.png ProFont 11](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RProFont-11.png)
![ProFont-18.png ProFont 18](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RProFont-18.png)
字型名稱:Profont
下載網址:tobiasjung.name
根據這裡的說明,在 Ubuntu Linux 中若要讓 ProFont 正常運作,要在 ~/.fonts.conf 針對 ProFont 字型做一些特別的設定:
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <selectfont> <acceptfont> <pattern> <patelt name="family"><string>ProFont</string></patelt> </pattern> </acceptfont> </selectfont> </fontconfig>
AR PL UMing TW
![ar-pl-uming-10.png Ar pl uming 10](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Rar-pl-uming-10.png)
![ar-pl-uming-12.png Ar pl uming 12](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Rar-pl-uming-12.png)
字型名稱:AR PL UMing
下載網址:freedesktop.org
若在 Ubuntu Linux 中,可用 apt 安裝:
sudo apt-get install fonts-arphic-uming
Monofur
![monofur-12.png Monofur 12](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Rmonofur-12.png)
![monofur-14.png Monofur 14](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Rmonofur-14.png)
![monofur-16.png Monofur 16](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Rmonofur-16.png)
字型名稱:Monofur
下載網址:dafont.com
Courier Negreta
![Courier-12.png Courier 12](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RCourier-12.png)
![Courier-14.png Courier 14](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RCourier-14.png)
Courier 是一個各種系統都會內建的字型,不需要安裝即可使用,有些系統中會以 Courier New 這個名稱表示該字型。上面的兩張圖是將樣式調整為 Negreta 的情況。
Monaco
![monaco-10.png Monaco 10](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Rmonaco-10.png)
![monaco-12.png Monaco 12](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Rmonaco-12.png)
![monaco-14.png Monaco 14](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-Rmonaco-14.png)
字型名稱:Monaco
下載網址:monaco-font
Monaco 是 Mac 系統中內建的字型,如果是 Mac 的使用者則不需要安裝。
Proggy Clean
![Proggy-Clean-12.png Proggy Clean 12](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RProggy-Clean-12.png)
![Proggy-Clean-24.png Proggy Clean 24](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RProggy-Clean-24.png)
字型名稱:Proggy Clean
下載網址:dafont.com
Droid Sans Mono
![Droid-Sans-Mono-10.png Droid Sans Mono 10](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RDroid-Sans-Mono-10.png)
![Droid-Sans-Mono-12.png Droid Sans Mono 12](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RDroid-Sans-Mono-12.png)
![Droid-Sans-Mono-14.png Droid Sans Mono 14](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RDroid-Sans-Mono-14.png)
![Droid-Sans-Mono-16.png Droid Sans Mono 16](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RDroid-Sans-Mono-16.png)
字型名稱:Droid Sans Mono
下載網址:damieng.com
Consolas
![Consolas-10.png Consolas 10](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RConsolas-10.png)
![Consolas-12.png Consolas 12](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RConsolas-12.png)
![Consolas-14.png Consolas 14](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RConsolas-14.png)
![Consolas-16.png Consolas 16](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RConsolas-16.png)
Consolas 是微軟所設計的字型,不過現在許多系統都已經有內建了。
字型名稱:Consolas
下載網址:fontpalace.com
Andale Mono
![Andale-Mono-12.png Andale Mono 12](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RAndale-Mono-12.png)
![Andale-Mono-14.png Andale Mono 14](http://web.archive.org./web/20190731205538im_/https://free.com.tw/blog/wp-content/uploads/2014/07/Envy-Code-RAndale-Mono-14.png)
字型名稱:Andale Mono
下載網址:ascendercorp.com
Dina
Dina 是一種只適用於 Windows 系統的字型。
字型名稱:Dina
下載網址:donationcoder.com