holder icon indicating copy to clipboard operation
holder copied to clipboard

RTL support

Open redayoub opened this issue 9 years ago • 8 comments

Hi,

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

Thanks.

redayoub avatar Jan 25 '16 13:01 redayoub

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.

imsky avatar Jan 26 '16 02:01 imsky

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.

redayoub avatar Jan 27 '16 17:01 redayoub

ok i'll add that as a test, thanks

imsky avatar Jan 27 '16 17:01 imsky

Thanks

redayoub avatar Jan 27 '16 17:01 redayoub

How can I add this manually please ?

redayoub avatar Jun 29 '16 02:06 redayoub

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

imsky avatar Jul 01 '16 22:07 imsky

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

PerseusTheGreat avatar Apr 29 '17 10:04 PerseusTheGreat

thanks @PerseusTheGreat

imsky avatar May 04 '17 01:05 imsky