Skip to content
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

Fix #541 RTL curved labels when segments end on neutral character #543

Merged
merged 2 commits into from
Apr 13, 2017

Conversation

dmvaldman
Copy link
Contributor

@dmvaldman dmvaldman commented Apr 11, 2017

We detect if a broken up text segment ends on a neutral character. In this case we draw the characters individually (as separate glyphs) instead of clustering them. This should resolve the issue with curved labels for RTL text, but not for multi-line labels, which will require a different approach. This fixes part of the issue in #541.

Spaces:
www gifcreator me_joyyqh

Punctuation:
www gifcreator me_0tjsdn

@dmvaldman
Copy link
Contributor Author

@mushon If you'd like to test this, you can do so here: https://precog.mapzen.com/tangrams/tangram/rtl-fix/#16.966313008924754/32.07126714677083/34.7888861289828

(toggle the language to "default" for Hebrew labels)

It should be centered on the top image above. The multi-line labels are still not fixed, but we should have a different fix for that soon.

@bcamper bcamper merged commit 9178586 into master Apr 13, 2017
@bcamper bcamper deleted the rtl-fix branch April 13, 2017 17:16
@bcamper bcamper added this to the v0.12.2 milestone Apr 13, 2017
@bcamper
Copy link
Member

bcamper commented Apr 21, 2017

Release in v0.12.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants