linebender / piet

An abstraction for 2D graphics.
Apache License 2.0
1.26k stars 94 forks source link

Use only free fonts in the samples #559

Open notgull opened 1 year ago

notgull commented 1 year ago

https://github.com/linebender/piet/blob/24acaf6467bff134b7b5c7c0ec70973544020b49/piet/src/samples/picture_0.rs#L21

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 commented 1 year ago

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 commented 1 year ago

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?