<p dir="auto">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 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1901712441" data-permission-text="Title is private" data-url="https://github.com/mapnik/mapnik/issues/4406" data-hovercard-type="issue" data-hovercard-url="/mapnik/mapnik/issues/4406/hovercard" href="https://github.com/mapnik/mapnik/issues/4406">mapnik/mapnik#4406</a>) so we want to call <code class="notranslate">load_fonts</code> on the map to populate it.</p>
<p dir="auto">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.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/mod_tile/pull/334'>https://github.com/openstreetmap/mod_tile/pull/334</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/mod_tile/pull/334/commits/2486d5abe4356e5b8dacd6cfd13618c31ae4258d" class="commit-link">2486d5a</a> Avoid copying the map if it's not parameterized</li>
<li><a href="https://github.com/openstreetmap/mod_tile/pull/334/commits/cb30e8b75b91cd0c25c2897857c6805ec839d5cc" class="commit-link">cb30e8b</a> Pre-load any map specific fonts</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/mod_tile/pull/334/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/mod_tile/pull/334/files#diff-24d2c9f48fad0996b30ba3cf92de842990379883baaffb424a9248d0f1f064e4">src/gen_tile.cpp</a>
(19)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/mod_tile/pull/334.patch'>https://github.com/openstreetmap/mod_tile/pull/334.patch</a></li>
<li><a href='https://github.com/openstreetmap/mod_tile/pull/334.diff'>https://github.com/openstreetmap/mod_tile/pull/334.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/mod_tile/pull/334">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353S223U4F3OKPEIYZY3X3PS7LANCNFSM6AAAAAA5BBZRMY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353UZYFIOOBBOSOGLHHTX3PS7LA5CNFSM6AAAAAA5BBZRM2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHDH42VI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/mod_tile/pull/334</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/mod_tile/pull/334",
"url": "https://github.com/openstreetmap/mod_tile/pull/334",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>