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

Why can't the Chinese text-field in rasterized mode be displayed under the same mbtiles file and style? Ask how to solve? #621

Closed zzkzzk1984 closed 2 years ago

zzkzzk1984 commented 2 years ago

Why can't the Chinese text-field in rasterized mode be displayed under the same mbtiles file and style? Ask how to solve?

Screenshot of vector mode: image

Screenshot of rasterized mode: image

Screenshot of style.json: image

acalcutt commented 2 years ago

I don't have any solution at this time, but I tested this on my server and can confirm the issue. it seems like any text that has chinese characters is not showing

With maplibre-gl-js https://tiles.wifidb.net/styles/WDB_BASIC/#8/22.022/106.885 image

With maplibre-gl-native https://tiles.wifidb.net/styles/WDB_BASIC/?raster#9/22.0220/106.8846 image

acalcutt commented 2 years ago

After some more testing I got it working. In my case it was because I did not have to Noto fonts in font directory specified in my config file.

I went and downloaded noto-sans.zip from https://github.com/openmaptiles/fonts/releases , put them in my fonts directory, restarted tileserver, and now those chinese symbols show.

image

zzkzzk1984 commented 2 years ago

After some more testing I got it working. In my case it was because I did not have to Noto fonts in font directory specified in my config file.

I went and downloaded noto-sans.zip from https://github.com/openmaptiles/fonts/releases , put them in my fonts directory, restarted tileserver, and now those chinese symbols show.

image With your patient help, I have solved this problem, thank you so much! image