fabricjs / fabric.js

Javascript Canvas Library, SVG-to-Canvas (& canvas-to-SVG) Parser
http://fabricjs.com
Other
28.73k stars 3.49k forks source link

Applying charSpacing to Hebrew text, getting text flipped #8280

Open chiragbytes opened 2 years ago

chiragbytes commented 2 years ago

Hello @asturur

I am having issue with charSpacing in hebrew selected texts, after applying charSpacing text got flipped. I found similar issue on #6848 , later tha found to be linked with #2374

After upgrading fabricJS to 4.6.0 and using new property direction I am still facing the same issue.

FYI, I am using Angular 8 with fabric js in my project.

Here is my code that i am using for applying charSpacing. obj.set({ 'charSpacing': Math.ceil(Number(event.target.value)) });

Thank you.

ShaMan123 commented 2 years ago

There are open PRs (#7864, #7796) that fix a lot of rtl issues. I suggest you try them out.