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

RTL support #176

Open
redayoub opened this issue Jan 25, 2016 · 8 comments
Open

RTL support #176

redayoub opened this issue Jan 25, 2016 · 8 comments

Comments

@redayoub
Copy link

Hi,

Does Holder.js support RTL text? If not, is there any way to that?

Thanks.

@imsky
Copy link
Owner

imsky commented Jan 26, 2016

that should be straightforward to implement. could you provide an example, and how you'd want it to display? i'm not an expert on RTL rendering so i'd like to ensure it works with real-world use cases first.

@redayoub
Copy link
Author

I'm using it with arabic text, so for exemple the text : "الدار البيضاء" is displayed like that "البيضاء الدار " inside a holder image. In css we can do that by setting text direction to rtl.

@imsky
Copy link
Owner

imsky commented Jan 27, 2016

ok i'll add that as a test, thanks

@redayoub
Copy link
Author

Thanks

@redayoub
Copy link
Author

How can I add this manually please ?

@imsky
Copy link
Owner

imsky commented Jul 1, 2016

i'm not sure if it can be done manually. the only thing i can think of is reversing the string before passing is to Holder

@PerseusTheGreat
Copy link

The below link introduces you, useful references to rendering RTL text in SVG.
W3C - SVG Text direction
Good luck.

@imsky
Copy link
Owner

imsky commented May 4, 2017

thanks @PerseusTheGreat

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

3 participants