[Tile-serving] [openstreetmap/mod_tile] Pre-load fonts so map's local font cache is populated (PR #334)
Tom Hughes
notifications at github.com
Thu Sep 21 07:19:17 UTC 2023
If the local font cache is not populated the mapnik falls back to trying to use the global cache which is buggy and has nasty local contention issues (https://github.com/mapnik/mapnik/issues/4406) so we want to call `load_fonts` on the map to populate it.
Because copying map objects discards the cache we want to avoid doing that unless we have to, and when we do have to because the map is parameterized we defer loading the fonts until after the copy is made.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/mod_tile/pull/334
-- Commit Summary --
* Avoid copying the map if it's not parameterized
* Pre-load any map specific fonts
-- File Changes --
M src/gen_tile.cpp (19)
-- Patch Links --
https://github.com/openstreetmap/mod_tile/pull/334.patch
https://github.com/openstreetmap/mod_tile/pull/334.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/pull/334
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/mod_tile/pull/334 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230921/dde7c4b8/attachment.htm>
More information about the Tile-serving
mailing list