macOS 上没有预装 Consolas 字体,不过可以手动安装。

原文在这里,下面是安装方法:

1
2
3
4
5
6
7
8
brew install cabextract
cd ~/Downloads
mkdir consolas
cd consolas
curl -O http://download.microsoft.com/download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26/PowerPointViewer.exe
cabextract PowerPointViewer.exe
cabextract ppviewer.cab
open CONSOLA*.TTF

如果微软的下载地址失效,可以使用下面的地址:

1
curl -LO https://sourceforge.net/projects/mscorefonts2/files/cabs/PowerPointViewer.exe