Skip to content

Conversation

@jwodder
Copy link

@jwodder jwodder commented Nov 18, 2025

Using &'static strs for error is bad API design, as it makes it hard for calling code to determine what type of error has happened without becoming dependent on exact strings, and also because &'static str doesn't implement std::error::Error. This PR replaces the &'static str errors with a dedicated FontError type.

If you don't want thiserror added as a dependency for some reason, I can amend the PR to implement the relevant traits manually instead.

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

Successfully merging this pull request may close these issues.

1 participant