[Google Fonts] brew cask で Font をインストールする (Google Noto / Roboto)

brew cask で Font もインストールできます。

Google Noto / Roboto とは

Google Noto

Google Roboto

インストール

リポジトリの追加

追加したことがなければ、フォント用のリポジトリを追加します。

% brew tap caskroom/fonts
Cloning into '/usr/local/Library/Taps/caskroom/homebrew-fonts'...
remote: Counting objects: 8651, done.
remote: Total 8651 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (8651/8651), 1.37 MiB | 346.00 KiB/s, done.
Resolving deltas: 100% (5717/5717), done.
Checking connectivity... done.
Tapped 0 formulae

サーチ

フォントを探します。

% brew cask search /roboto/
==> Regexp matches
font-roboto   font-roboto-slab

インストール

インストールします。
font-roboto font-noto-sans-japanese font-noto-sans font-noto-serif

% brew cask install font-roboto font-noto-sans-japanese font-noto-sans font-noto-serif
==> Downloading http://developer.android.com/downloads/design/roboto-1.2.zip
######################################################################## 100.0%
==> Hardlinking Font 'Roboto-Black.ttf' to '/Users/****/Library/Fonts/Roboto-Black.ttf'
==> Hardlinking Font 'Roboto-BlackItalic.ttf' to '/Users/****/Library/Fonts/Roboto-BlackItalic.ttf'
==> Hardlinking Font 'Roboto-Bold.ttf' to '/Users/****/Library/Fonts/Roboto-Bold.ttf'
==> Hardlinking Font 'Roboto-BoldItalic.ttf' to '/Users/****/Library/Fonts/Roboto-BoldItalic.ttf'
==> Hardlinking Font 'Roboto-Italic.ttf' to '/Users/****/Library/Fonts/Roboto-Italic.ttf'
==> Hardlinking Font 'Roboto-Light.ttf' to '/Users/****/Library/Fonts/Roboto-Light.ttf'
==> Hardlinking Font 'Roboto-LightItalic.ttf' to '/Users/****/Library/Fonts/Roboto-LightItalic.ttf'
==> Hardlinking Font 'Roboto-Medium.ttf' to '/Users/****/Library/Fonts/Roboto-Medium.ttf'
==> Hardlinking Font 'Roboto-MediumItalic.ttf' to '/Users/****/Library/Fonts/Roboto-MediumItalic.ttf'
==> Hardlinking Font 'Roboto-Regular.ttf' to '/Users/****/Library/Fonts/Roboto-Regular.ttf'
==> Hardlinking Font 'Roboto-Thin.ttf' to '/Users/****/Library/Fonts/Roboto-Thin.ttf'
==> Hardlinking Font 'Roboto-ThinItalic.ttf' to '/Users/****/Library/Fonts/Roboto-ThinItalic.ttf'
==> Hardlinking Font 'RobotoCondensed-Bold.ttf' to '/Users/****/Library/Fonts/RobotoCondensed-Bold.ttf'
==> Hardlinking Font 'RobotoCondensed-BoldItalic.ttf' to '/Users/****/Library/Fonts/RobotoCondensed-BoldItalic.ttf'
==> Hardlinking Font 'RobotoCondensed-Italic.ttf' to '/Users/****/Library/Fonts/RobotoCondensed-Italic.ttf'
==> Hardlinking Font 'RobotoCondensed-Light.ttf' to '/Users/****/Library/Fonts/RobotoCondensed-Light.ttf'
==> Hardlinking Font 'RobotoCondensed-LightItalic.ttf' to '/Users/****/Library/Fonts/RobotoCondensed-LightItalic.ttf'
==> Hardlinking Font 'RobotoCondensed-Regular.ttf' to '/Users/****/Library/Fonts/RobotoCondensed-Regular.ttf'
  font-roboto installed to '/opt/homebrew-cask/Caskroom/font-roboto/1.200311' (24 files, 3.7M)
==> Downloading http://www.google.com/get/noto/pkgs/NotoSansJapanese-hinted.zip
######################################################################## 100.0%
==> Hardlinking Font 'NotoSansJP-Black.otf' to '/Users/****/Library/Fonts/NotoSansJP-Black.otf'
==> Hardlinking Font 'NotoSansJP-Bold.otf' to '/Users/****/Library/Fonts/NotoSansJP-Bold.otf'
==> Hardlinking Font 'NotoSansJP-DemiLight.otf' to '/Users/****/Library/Fonts/NotoSansJP-DemiLight.otf'
==> Hardlinking Font 'NotoSansJP-Light.otf' to '/Users/****/Library/Fonts/NotoSansJP-Light.otf'
==> Hardlinking Font 'NotoSansJP-Medium.otf' to '/Users/****/Library/Fonts/NotoSansJP-Medium.otf'
==> Hardlinking Font 'NotoSansJP-Regular.otf' to '/Users/****/Library/Fonts/NotoSansJP-Regular.otf'
==> Hardlinking Font 'NotoSansJP-Thin.otf' to '/Users/****/Library/Fonts/NotoSansJP-Thin.otf'
  font-noto-sans-japanese installed to '/opt/homebrew-cask/Caskroom/font-noto-sans-japanese/latest' (8 files, 30M)
==> Downloading http://www.google.com/get/noto/pkgs/NotoSans-unhinted.zip
######################################################################## 100.0%
==> Hardlinking Font 'NotoSans-Bold.ttf' to '/Users/****/Library/Fonts/NotoSans-Bold.ttf'
==> Hardlinking Font 'NotoSans-BoldItalic.ttf' to '/Users/****/Library/Fonts/NotoSans-BoldItalic.ttf'
==> Hardlinking Font 'NotoSans-Italic.ttf' to '/Users/****/Library/Fonts/NotoSans-Italic.ttf'
==> Hardlinking Font 'NotoSans-Regular.ttf' to '/Users/****/Library/Fonts/NotoSans-Regular.ttf'
  font-noto-sans installed to '/opt/homebrew-cask/Caskroom/font-noto-sans/latest' (5 files, 828K)
==> Downloading http://www.google.com/get/noto/pkgs/NotoSerif-unhinted.zip
######################################################################## 100.0%
==> Hardlinking Font 'NotoSerif-Bold.ttf' to '/Users/****/Library/Fonts/NotoSerif-Bold.ttf'
==> Hardlinking Font 'NotoSerif-BoldItalic.ttf' to '/Users/****/Library/Fonts/NotoSerif-BoldItalic.ttf'
==> Hardlinking Font 'NotoSerif-Italic.ttf' to '/Users/****/Library/Fonts/NotoSerif-Italic.ttf'
==> Hardlinking Font 'NotoSerif-Regular.ttf' to '/Users/****/Library/Fonts/NotoSerif-Regular.ttf'
  font-noto-serif installed to '/opt/homebrew-cask/Caskroom/font-noto-serif/latest' (5 files, 1008K)

プレビュー

Font Book.app でプレビューしてみます。

Roboto

2014-08-14_roboto-noto_01

Noto

2014-08-14_roboto-noto_02