Set Emacs faces based on available fonts.
Dynamic-fonts.el makes font configuration more portable between machines. When Emacs is starting up, dynamic-fonts chooses fonts for your basic faces based on which fonts are actually available.
You may set a list of fonts in order of preference using customize.
To use dynamic-fonts, place the dynamic-fonts.el file somewhere Emacs can find it, and add the following to your ~/.emacs file:
(require 'dynamic-fonts) (dynamic-fonts-setup)
M-x customize-group RET dynamic-fonts RET M-x customize-group RET font-utils RET
dynamic-fonts.el is available at github:
and via EmacsWiki:
Tested on GNU Emacs versions 23.3 and 24.1
Requires FontUtils