以前有朋友介绍 Consolas 字体,用了以后一下就爱上了,最近一段时间用 Mac 笔记本,发现 Mac OS 系统里面没有这个字体,所以要自己安装,以下是在网络上搜索的方法,原文地址:http://blog.ikato.com/post/15675823000/how-to-install-consolas-font-on-mac-os-x
安装 Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
或者(如果/usr/bin/ruby不好使,用这个下载homebrew): curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1
brew update
sudo chown -R $(whoami) /usr/local
$ 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
按如上命令在终端执行后,会打开字体安装界面,如下图:
点击安装字体后会弹出安装过程和安装完成的界面:
这样就安装完毕了,设置使用 Consolas 字体即可。。。。