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

Support for Writing Direction (Right-To-Left) #4

Closed
abumami opened this issue Mar 2, 2017 · 4 comments
Closed

Support for Writing Direction (Right-To-Left) #4

abumami opened this issue Mar 2, 2017 · 4 comments
Assignees
Milestone

Comments

@abumami
Copy link

abumami commented Mar 2, 2017

Is there anyway to cause this library to have the text align default to .right? This would be very helpful for Hebrew and Arabic.

Thanks

@malcommac
Copy link
Owner

Hi @abumami , since 0.9.5 you will found .writingDirection property which allows you to define the direction of the text (leftToRight, rightToLeft or natural).
This is the commit:
d9b7549

I'll release it later today.

@malcommac malcommac self-assigned this Mar 2, 2017
@malcommac malcommac added this to the 0.9.5 milestone Mar 2, 2017
@abumami
Copy link
Author

abumami commented Mar 2, 2017

Hey @malcommac, that was fast!
You are a gentleman and a scholar.

I'll try it out and let you know.

Thanks!

@malcommac malcommac changed the title text align .right Support for Writing Direction (Right-To-Left) Mar 2, 2017
@malcommac
Copy link
Owner

You are welcome 👍 Thank you!

@abumami
Copy link
Author

abumami commented Mar 2, 2017

Hey @malcommac, forgot to ask before...

Is there any way to apply Writing Direction (Right-To-Left) as a document default? This way the direction attribute doesn't have to be added to the styles.

Thanks

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

No branches or pull requests

2 participants