gravitystorm / openstreetmap-carto

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

Kosmtik in Docker complains about missing fonts #3020

Closed polarbearing closed 6 years ago

polarbearing commented 6 years ago

Kosmtik in Docker (MacOS host) complains about missing fonts at runtime. Map ist still rendered. Docker is the stable MacOS package from here Installation followed the DOCKER.md instructions in this repo.

kosmtik_1  | Mapnik LOG> 2018-01-13 04:10:08: warning: unable to find face-name 'Noto Sans Cherokee Bold' in FontSet 'fontset-2'
kosmtik_1  | Mapnik LOG> 2018-01-13 04:10:08: warning: unable to find face-name 'Noto Sans Sinhala UI Bold' in FontSet 'fontset-2'
kosmtik_1  | Mapnik LOG> 2018-01-13 04:10:08: warning: unable to find face-name 'Noto Sans Symbols Bold' in FontSet 'fontset-2'
kosmtik_1  | Mapnik LOG> 2018-01-13 04:10:08: warning: unable to find face-name 'Noto Sans Arabic UI Bold' in FontSet 'fontset-2'
kosmtik_1  | Mapnik LOG> 2018-01-13 04:10:08: warning: unable to find face-name 'Noto Sans Adlam Regular' in FontSet 'fontset-2'
kosmtik_1  | Mapnik LOG> 2018-01-13 04:10:08: warning: unable to find face-name 'Noto Sans Adlam Unjoined Regular' in FontSet 'fontset-2'
kosmtik_1  | Mapnik LOG> 2018-01-13 04:10:08: warning: unable to find face-name 'Noto Sans Chakma Regular' in FontSet 'fontset-2'
kosmtik_1  | Mapnik LOG> 2018-01-13 04:10:08: warning: unable to find face-name 'Noto Sans Osage Regular' in FontSet 'fontset-2'
kosmtik_1  | Mapnik LOG> 2018-01-13 04:10:08: warning: unable to find face-name 'Noto Sans Sinhala UI Regular' in FontSet 'fontset-2'
kosmtik_1  | Mapnik LOG> 2018-01-13 04:10:08: warning: unable to find face-name 'Noto Sans Symbols2 Regular' in FontSet 'fontset-2'
kosmtik_1  | Mapnik LOG> 2018-01-13 04:10:08: warning: unable to find face-name 'Noto Sans Arabic UI Regular' in FontSet 'fontset-2'
kosmtik_1  | Mapnik LOG> 2018-01-13 04:10:08: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-2'
kosmtik_1  | Mapnik LOG> 2018-01-13 04:10:08: warning: unable to find face-name 'HanaMinA Regular' in FontSet 'fontset-2'
kosmtik_1  | Mapnik LOG> 2018-01-13 04:10:08: warning: unable to find face-name 'HanaMinB Regular' in FontSet 'fontset-2'
kosmtik_1  | Mapnik LOG> 2018-01-13 04:10:08: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-2'
HolgerJeromin commented 6 years ago

We add a massive amount of fonts to have support for all platforms and name=*. So these message are "on purpose"

d3netxer commented 6 years ago

How do I add all of the fonts? Following the directions on openstreetmap-carto I installed the fonts using this command (Ubuntu 16.04):

sudo apt-get install fonts-noto-cjk fonts-noto-hinted fonts-noto-unhinted fonts-hanazono ttf-unifont

so I wasn't expecting to find any warnings.

HolgerJeromin commented 6 years ago

Tt is not possible to install all referenced fonts as at least with "Unifont Medium", "unifont Medium" we have the same font with different names (for different OS Variants). ref #2948 and #2924

kocio-pl commented 6 years ago

I installed the fonts using this command (Ubuntu 16.04) so I wasn't expecting to find any warnings.

In the same section you can read also:

The current upstream font release has also some more scripts and style variants than in the Ubuntu package. It can be installed from source.

I guess we can close this issue, since font warnings are unavoidable even if you add them manually (see #2924 ).