為寫程序而生的連字字體 Fira Code

Fira Code,等寬的編程連字字體

等寬 是指所有字符的寬度相同,如: Wi 用一樣的寬度去顯示

連字(ligatures)為文字排印的一個特性,比如「f」和「 i」放在一起的時候兩個字母容易粘連,那設計者就會專門設計一個連字字符來替代原來單獨的「f」和「i」的連字:

很多編程字體包括 Fira Code 就是利用了這個特性來對編程中的 常用符號進行優化,如:把輸入的「!=」顯示成「≠」或者把「>=」變成「≥ 」等等,以此來 提高代碼的可讀性

安裝使用

項目地址:https://github.com/tonsky/FiraCode

下載地址:https://github.com/tonsky/FiraCode/releases/download/2/FiraCode_2.zip

安裝教程:https://github.com/tonsky/FiraCode/wiki

示例

Ruby:

JavaScript:

PHP:

Erlang:

Elixir:

Go:

LiveScript:

Clojure:

Swift:

其他同類字體

https://github.com/i-tu/Hasklig (free)http://www.fsd.it/fonts/pragmatapro.htm (€59)http://larsenwork.com/monoid/ (free)https://github.com/kika/fixedsys (free)https://be5invis.github.io/Iosevka/ (free)https://github.com/SSNikolaevich/DejaVuSansCode (free)https://rubjo.github.io/victor-mono/ (free)https://github.com/microsoft/cascadia-code (free)