Replies: 4 comments 22 replies
-
What problem does this solve? If the problem is with the current support of text, then it would probably have the same problems. |
Beta Was this translation helpful? Give feedback.
-
Using a canvas in web browsers would mean that the text does not look identical on all devices. Is this a requirement which we can drop for the sake of being able to render at least something in currently non-supported languages? |
Beta Was this translation helpful? Give feedback.
-
Collisions are broken, and long labels look not great, but still, here is an example with street names in Bengali: https://wipfli.github.io/maplibre-canvas-labels/offscreen#map=14.98/23.75498/90.38573 |
Beta Was this translation helpful? Give feedback.
-
New idea: We could let the user decide how to segment text. The user could insert some sort of special character at the locations where text can be segmented. Examples:
|
Beta Was this translation helpful? Give feedback.
-
I wonder if it would make sense to add a style spec expression called
text-to-sdf
which takes a string, renders it in a canvas and turns the image into an sdf.A use-case would be:
With this, we could do stuff like this:
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions