maptiler / tileserver-gl

Vector and raster maps with GL styles. Server side rendering by MapLibre GL Native. Map tile server for MapLibre GL JS, Android, iOS, Leaflet, OpenLayers, GIS via WMTS, etc.
https://tileserver.readthedocs.io/en/latest/
Other
2.24k stars 639 forks source link

Styles with multiple fonts fails #32

Closed klokan closed 8 years ago

klokan commented 8 years ago

Docker console prints:

[Error: ENOENT: no such file or directory, open '/data/glyphs/Open Sans Italic,Open Sans Regular/0-255.pbf']
mbgl: { class: 'Style',
  severity: 'ERROR',
  text: 'Failed to load glyph range 0-255 for font stack Open Sans Italic,Open Sans Regular: ENOENT: no such file or directory, open \'/data/glyphs/Open Sans Italic,Open Sans Regular/0-255.pbf\'' }

No map (neither vector nor raster) is returned.

klokan commented 8 years ago

The easiest way how to reproduce the error is to modify the bright-v9.json: https://github.com/klokantech/tileserver-gl-data/blob/master/styles/bright-v9.json#L2903 switch:

                "text-font": [
                    "Open Sans Italic"
               ],

to

                "text-font": [
                    "Open Sans Italic",
                    "Open Sans Regular"
                ],