Replies: 3 comments 10 replies
-
I don't think so. The spec should work for the package without the need for a plugin. |
Beta Was this translation helpful? Give feedback.
-
In the spirit of test driven development, I made a small test suite for text which MapLibre GL JS cannot render at the moment: |
Beta Was this translation helpful? Give feedback.
-
To come back to your questions @HarelM:
From the canvas labels in https://github.com/wipfli/i18n-testsuite-maplibre it looks like all what browsers need it the string. At least this seems to work well enough for map labels. So a solution in MapLibre should probably guess what the language, script, and direction are of a text string... |
Beta Was this translation helpful? Give feedback.
-
@alanchenboy is working on text shaping with Harfbuzz in MapLibre Native. This might be brought to GL JS with a plugin (harfbuzz wasm similar to the rtl plugin).
Now shaping might require new style spec properties like for example
text-language
. But they would only have an effect when the shaping plugin is loaded.Is it OK to style spec properties that only work if the shaping plugin is loaded?
Beta Was this translation helpful? Give feedback.
All reactions