acalcutt / tileserver-gl

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

Chinese/Japanese characters not being rendered on raster map #73

Closed dwoznicki closed 1 year ago

dwoznicki commented 1 year ago

I'm having trouble getting Chinese/Japanese names to show up on my raster map. Oddly enough, I do not have this problem with my vector tiles.

Here's a rendered vector tile from within Tokyo.

image

Here's roughly the same raster tile.

image

When I modify my style.json to render road label class instead of road name, we can see that there are a at least a few road labels within the tile.

image

I think this is probably an issue with my style.json, or maybe my fonts, because I see that other styles successfully render Chinese/Japanese labels. But I'm having trouble figuring out what could be going wrong, since my vector tiles seem fine.

Do you have any advice for debugging this issue?

tileserver-gl version

@acalcutt/tileserver-gl@5.2.0

OS

Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:    11
Codename:   bullseye

If it's of any use, you can find the frontend for my tileserver-gl here: http://flan.nettoolkit.com:8005/

dwoznicki commented 1 year ago

Oh, I think it's actually just an issue with Open Sans. Swapping to Noto Sans gives me a tile with proper road names. That's strange.. I wonder if my vector map is quietly fixing missing glyphs with fonts from my local computer.

acalcutt commented 1 year ago

I think thats truw btw. In the vector map using maplibre-gl-js it is able to download the missing fonts in the browser. When using maplibre-native in the raster maps, it needs them to be in the folder since the rendering takes place on the server side.

acalcutt commented 1 year ago

btw, I have moved most development to the official https://github.com/maptiler/tileserver-gl . I am an admin there now and most changes that were in my fork here are there now. I still use this fork for testing and development, but I would say the official branch should be a little more stable.