New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading to 4.4 breaking RTL support #7367
Comments
Thanks for the report @ahmadazimi. This should be something that can be addressed in an upcoming release. In the meantime, it sounds like you should stick with 4.3.3. |
@ahmadazimi How did you set RTL in 4.3.3? Can you provide a CodePen with RTL labels? |
@ahocevar I didn't do anything special thing! Because my html tag is RTL, I didn't need specify style or script to make labels RTL. |
my text styles disappeared completely with 4.4.2, changing back to 4.3.4 until this regression is fixed. |
@gimerstedt Are you sure you're facing the same issue? Make sure to use all lowercase values for |
@ahocevar i wasn't sure but it was the closest to my issue i could find and reverting solved it. thanks. |
@ahocevar I had |
@pedros007 Mixed case only used to work by chance - the documented values were always lowercase. |
Any updates on this? I can't use text style with Hebrew due to this bug... I also can't update to latest version (5.2) of openlayers due to the fact that I can't compile it with angular-cli as much as I tried (#8357). Any help will be appreciated... |
If you want to help, a better test case would help, i.e a text that consists of multiple words and punctuations, and a reference so we see what it should look like when rendered correctly. Feel free to provide that as comment or linked live examples in this ticket. |
Thanks for the quick response! |
Any updates on this? |
I think this boils down to forcing LTR when creating pre-rendered images for all text (i.e. create the text canvas with If anyone wants to work on this, we'd gladly accept a pull request. |
I'd be happy to help out, but this seems a bit too big for my understanding of OL in terms of coding this. I'll be happy to test a pre-release version assuming I can use it with |
For further testing, I updated the stackblitz from above to the latest |
Recently I've upgraded to new version 4.4.2 and now I've faced two major problem:
First:
ol.style.Text
now not support RTL text and render it in LTR style! In the previous 4.3.3 version I didn't have any problem with it. (see parentheses in the below image)And this is correct one with 4.3.3 version:
Second:
When using placement: 'line' in
ol.style.Text
, it doesn't support RTL as well and text`s letters render splitted!And this is correct one with 4.3.3 version:
The text was updated successfully, but these errors were encountered: