freetonik/castlemacs

Prevent font errors

Closed this issue · 3 comments

Menlo is a font not available by default on many systems apart from Mac. So, I would suggest to set this font only when system is darwin. system-type might be useful in such a case.

It could be checked to see (font-family-list).

Yup. Its as simple as:

(when (member "menlo" (font-family-list))
  (set-face-attribute 'default nil :font "Menlo 15"))

@freetonik Just check if the name is correct and it should be good to go.

Thanks!