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

Could not load font from file path: "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf" #7

Closed
ktmeaton opened this issue Nov 22, 2023 · 3 comments

Comments

@ktmeaton
Copy link
Collaborator

  • The file path to the font was hardcoded in plot.
@ktmeaton
Copy link
Collaborator Author

The rust-fontconfig crate seems to be a nice implementation of cross-platform font searching. Sadly this means I now have two separate font dependencies, rust-fontconfig and rusttype.

ktmeaton added a commit that referenced this issue Nov 22, 2023
@ktmeaton
Copy link
Collaborator Author

Similar to Issue #6, I will package the font dependencies inside the binary itself. We'll see how much bigger that makes the final binary.

ktmeaton added a commit that referenced this issue Nov 27, 2023
ktmeaton added a commit that referenced this issue Dec 4, 2023
ktmeaton added a commit that referenced this issue Dec 4, 2023
@ktmeaton
Copy link
Collaborator Author

ktmeaton commented Dec 4, 2023

Resolved with PR #8.

@ktmeaton ktmeaton closed this as completed Dec 4, 2023
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

1 participant