mapbox / mapbox-gl-style-spec

76 stars 38 forks source link

Text wrap without spaces #420

Closed peterqliu closed 8 years ago

peterqliu commented 8 years ago

Languages like Chinese don't employ spaces between characters. How should we handle text wrapping for long labels without spaces?

friedbunny commented 8 years ago

We've had some discussions about this elsewhere — https://github.com/mapbox/mapbox-gl-native/issues/1223 and https://github.com/mapbox/mapbox-gl/issues/4 — but no real movement towards implementation yet.

/cc @mikemorris

mikemorris commented 8 years ago

Yea, our current line-breaking algorithm is pretty simple, https://github.com/mapbox/mapbox-gl-native/issues/1223 covers the backstory here pretty well. AFAIK this is something that needs to be improved in our renderer, not the style spec.

peterqliu commented 8 years ago

cool, closing

1ec5 commented 7 years ago

This is happening in mapbox/mapbox-gl-js#3420 and mapbox/mapbox-gl-native#6828.