2010年5月7日 星期五

適合程式設計的字型

Monospace/Fixed Width Programmer's Fonts有提到適合程式設計的字型重點:
  • Crisp clear characters. (清晰)
  • Extended characterset. (延伸字元集)
  • Good use of whitespace. (妥善使用空白字元)
  • 'l', '1' and 'i' are easily distinguished (能夠清楚分辨大寫 l、數字 1 以及小寫 i)
  • '0', 'o' and 'O' are easily distinguished (能夠清楚分辨數字 0、小寫 o 以及大寫 O)
  • forward quotes from back quotes are easily distinguished -prefer mirrored appearance (能夠清楚分辨 ' 與 `,最好兩者的方向相反)
  • Clear punctuation characters, especially braces, parenthesis and brackets (標點符號要清楚,尤其是大括號、中括號與方括號)
綜合以上要點,選出了兩種符合的字型:
  • Consolas:微軟發展的新字型,內建於Vista、Office2007、Visual Studio2005等軟體。
  • Monaco:源於MAC上的字型,Return of Monaco.ttf有更多資訊。

下載: Consolas.TTF  Consolas.TTF
下載: Monaco.TTF  Monaco.TTF

Then "fc-cache -v"

How to use simple speedtest in RaspberryPi CLI

  pi@ChunchaiRPI2:/tmp $  wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py --2023-06-26 10:4...