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

Use only free fonts in the samples #559

Open
notgull opened this issue Jul 12, 2023 · 2 comments
Open

Use only free fonts in the samples #559

notgull opened this issue Jul 12, 2023 · 2 comments

Comments

@notgull
Copy link
Contributor

notgull commented Jul 12, 2023

let georgia = rc.text().font_family("Georgia").ok_or(Error::MissingFont)?;

On my Linux machine, I don't have the "Georgia" font installed because I avoid installing any non-free packages. It would be nice if this sample had an alternative font that was free.

@xStrom
Copy link
Member

xStrom commented Jul 12, 2023

Is there a specific free font you have in mind which exist on Windows/macOS/Linux?

If such a font doesn't exist then I guess for this example it wouldn't be a big problem to choose a different font for the cairo backend.

@cmyr
Copy link
Member

cmyr commented Jul 12, 2023

The samples are intended to be run during CI, and so reproducibility is important (so we want a named font, and not something like "generic system serif".) I agree it would be nice to be using free fonts, but I'd also prefer not to be bundling font files, so I'm not sure of a great solution, here?

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