gravitystorm / openstreetmap-carto

A general-purpose OpenStreetMap mapnik style, in CartoCSS
Other
1.55k stars 822 forks source link

RFC for strategy on font management #5043

Open imagico opened 4 days ago

imagico commented 4 days ago

Since #4606 we have been including a script to download the fonts we use and this way implicitly tell style users they can rely on that taking care of the fonts. Unfortunately, upstream sources of fonts are volatile and require maintainance of the download locations as well as font file naming (#5013, #4956). Our current font download script design is not very good for managing that.

This is a proposal how a more sustainable approach could look like. This is not meant to rule out smaller changes to the existing setup to fix acute issues but to provide a discussion basis for a more long term strategy how to develop this further.

Proposal

The main ideas are:

This is just a rough sketch of how this could look like, the details would need to be worked out of course. Discussion of those as well as of the proposal is welcome.

dch0ph commented 3 days ago

Looks a very sensible overall strategy to me.

Am I right in thinking that #4893 would address the acute problem in the meantime?

imagico commented 2 days ago

Am I right in thinking that https://github.com/gravitystorm/openstreetmap-carto/pull/4893 would address the acute problem in the meantime?

That probably depends on what you identify as the acute problem.

But yes, sourcing the emoji font from archive.org is probably a reasonably stable solution. #4893 mainly needs a thorough review.