Closed satya1907 closed 10 years ago
Currently, you will have to perform that separation yourself. jCanvas only wraps lines at every space in the text string.
Therefore, the simplest algorithm to wrap long words would require adding a space after every group of maxWidth
characters in the string.
-Caleb
Hi, I have a doubt, I want to draw a Elipse of width 200 and height 120. Now I want to put a very long word like "hgfvdjvknnvbfsdnbgknsgknbskngvsbvjnsbnkvbnkfsvnnvbnsbvnbsnvbnsbvkkvjsvjsvjhsvsjvjhfvhjdvjkdvjsvjsvjkwjhfjewfjfjdfjdhfjdnhfbhdsvhdshvhdsvskjqaschscjsdvcjsdjd" . Now the Problem is while trying with "maxWidth" for drawing the text, its working if the Words are smaller. But if there is any word which is larger, then it comes out of the Elipse.
My requirement is to make the word fragmented so, that it can fit into the Elipse with 2-3 rows..
Please help me ..
Thanks