MacOSにRicty Diminishedをインストールし、Emacsに設定したときのメモ

MacOS (Sonoma) に Ricty Diminishedをインストールしたくなったので、そのときのメモ。

以下のサイトからフォントをzipファイルでダウンロードする。

github.com

解凍したzipファイルにフォントたち(.ttf)が入っているので、好きなものをダブルクリックでインストール。Discord系以外をインストールすれば十分だろう。

フォントたち

Emacsのフォントを設定するには、

  • メニューの「Options → Set Default font」
  • Collection は All Fonts
  • Typeface で Ricty Diminishedを選択
  • Styleはレギュラー
  • Size はお好みで

とする。

Emacsのメニュー(Options)

Macのフォント設定

「OK」をクリックした後に再度Emacsのメニューから「Options → Save Options」とする。

フォント設定は.emacsに書き込まれる:

(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(default ((t (:family "Ricty Diminished" :foundry "nil" :slant normal :weight regular :height 140 :width normal)))))

参考

aoe-tk.hatenablog.com