Emacsのフォント設定 for "emacs --daemon"

Emacsdaemonとして起動すると、指定したフォントセット(fontset)が利用されない(というか作られさえしない)問題があって困っていた。

フォントセットが作られないことから、どうやらタイミングの問題なんじゃなかろうか?と思っていたら id:tarao さんの dotfiles リポジトリの中では、既にこの問題に対処した設定がなされていた。
https://github.com/tarao/dotfiles/blob/master/.emacs.d/init/window-system.el

When Emacs is started as a GUI application, just running this
function initializes the configurations.


When Emacs is started as a daemon, this function should be called
just after the first frame is created by a client. For this,
this function is added to `after-make-frame-functions' and
removed from them after the first call."

合わせて考えると、もしかしたら、初フレーム作成の時に fontset の作成に必要な初期化が行なわれている、のかもしれない。