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

Make font setting functions more fault-tolerant #87

Open
rye opened this issue Sep 11, 2017 · 1 comment
Open

Make font setting functions more fault-tolerant #87

rye opened this issue Sep 11, 2017 · 1 comment

Comments

@rye
Copy link
Member

rye commented Sep 11, 2017

As it stands, the font setting functions are not fault-tolerant at all. If a font does not exist on the system, there is simply no error except the one raised by Emacs itself, which then halts the init process. For instance, the default font in my configuration is Fira Code, but this font is not installed on some machines that I work on, and I have to make local changes to my configuration to prevent a failure in loading.

I intend to work on this one—it will involve defining a pre-defined font hierarchy alist—as users add fonts, they can prepend to this list cons cells of the form ("Font Family Name" . default-size). We can also write defuns for interacting with this list.

@rye
Copy link
Member Author

rye commented Sep 11, 2017

Code Snippet from IELM using x-list-fonts screen shot 2017-09-11 at 9 08 33 am

Here's a basic snippet of code to see how this might get implemented basically.

A better example using find-font screen shot 2017-09-11 at 9 13 25 am

@rye rye modified the milestones: Version 0.2.0, Version 0.3.0 Jul 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant