Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent font errors #5

Closed
Compro-Prasad opened this issue Sep 23, 2018 · 3 comments
Closed

Prevent font errors #5

Compro-Prasad opened this issue Sep 23, 2018 · 3 comments

Comments

@Compro-Prasad
Copy link
Contributor

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.

@takaxp
Copy link

takaxp commented Sep 23, 2018

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

@Compro-Prasad
Copy link
Contributor Author

Compro-Prasad commented Sep 23, 2018

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.

@freetonik
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants